Results 1 to 2 of 2
Can any body tell me whether there is any command in bash shell that removes new line(i.e"\n") from a file.......i.e a complete file should be a single line........is there any ...
- 03-21-2007 #1Just Joined!
- Join Date
- Mar 2007
- Posts
- 15
Shell command to remove new line markers from file
Can any body tell me whether there is any command in bash shell that removes new line(i.e"\n") from a file.......i.e a complete file should be a single line........is there any bash shell command to do this job.
- 03-21-2007 #2Linux User
- Join Date
- Aug 2006
- Posts
- 458
one method
Code:tr -d '\012' < file > newfile


Reply With Quote