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
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