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
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Reply 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: 388
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:

 
 
subject: how to remove '\n' and '\r' in the file by kshell
 
Threads others viewed
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?
IntelliJ Java IDE