This is a discussion on UNIX Shell Change the EOL (\n newline) by nothing - remove new line within the Shell scripting forums, part of the Development/Scripting category; I have a txt file like this: hello, hi, word3, and I would like to get only one line, what ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
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 . |
|
|||
|
sure.
I have this : Quote:
Quote:
Last edited by nixcraft; 05-14-2008 at 01:05 AM. |
![]() |
| Bookmarks |
| Tags |
| linux , perl , remove new line , remove \n , sed , shell script , unix |
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| unix shell on windows xp | chiku | Solaris/OpenSolaris | 4 | 03-07-2008 03:17 PM |
| HPUX Unix comparing 2 large files line by line | raj | HP-UX | 1 | 02-11-2008 05:20 PM |
| Linux UNIX SFTP in a Shell Script | Nishanthhampali | Shell scripting | 1 | 01-30-2008 01:16 PM |
| How to change the login shell for Linux user | chimu | Getting started tutorials | 0 | 01-26-2007 07:20 PM |
| Shell script to change folder directory owner after restore | marinm | Shell scripting | 5 | 01-23-2007 12:53 PM |