This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes how to remove '\n' and '\r' in the file by kshell Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "how to remove Watch "how to remove New topic
Author

how to remove '\n' and '\r' in the file by kshell

zb cong
Ranch Hand

Joined: Jan 14, 2002
Posts: 416
hello dears,

who can tell me which command can remove the '\n' and '\r' in a file. so the contents in the file are linked to one line.



Thanks.
Ireneusz Kordal
Ranch Hand

Joined: Jun 21, 2008
Posts: 423
Hello,

use tr command:

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to remove '\n' and '\r' in the file by kshell
 
Similar Threads
File upload and ^M chars
How to remove indents from xml?
remove line feed and carriage return from a string
problem while moving the java project from windows environment to FreeBSD in ASCII mode.
How to remove indents from xml?