File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
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?
How to remove indents from xml?