View Single Post

  #1 (permalink)  
Old 05-13-2008, 08:03 PM
permalac permalac is offline
Junior Member
User
 
Join Date: May 2008
My distro: fedora
Posts: 17
Rep Power: 0
permalac is on a distinguished road
Default UNIX Shell Change the EOL (\n newline) by nothing - remove new line

I have a txt file like this:

hello,
hi,
word3,



and I would like to get only one line, what would you do?


sed 's/$//g' whas my chance, and did not work.


thanks .
Reply With Quote