![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Delete carriage return in SED | juedsivi | Shell Programming and Scripting | 3 | 10-09-2008 04:50 PM |
| add carriage return at end of file | HAA | Shell Programming and Scripting | 2 | 11-20-2007 11:58 AM |
| How to delete carriage return in SED | stevefox | Shell Programming and Scripting | 3 | 12-23-2005 06:03 AM |
| Dont want carriage return | videsh77 | Shell Programming and Scripting | 3 | 12-16-2004 09:26 PM |
| Capture carriage return. | gio123bg | Shell Programming and Scripting | 4 | 12-15-2003 10:21 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
use sed to replace whitespace with a carriage return
Greetings I need to replace "whitespace" in a file with the newline character aka carriage return My command is either wrong or not interpreted properly by me shell Code:
sed s/" "/\\n" "/g nets > nets1 or Code:
sed s/" "/\n" "/g nets > nets1 nets (input file) 13MHZ_IN U1.AC21 Y2.1; 13MHZ_OUT R19.2 U1.AD21; 32KHZ_IN 46.1 C8.2 U1.AA22; nets1 (output file) 13MHZ_INn U1.AC21n Y2.1; 13MHZ_OUTn R19.2n U1.AD21; 32KHZ_INn 46.1n C8.2n U1.AA22; This is the result that I want 13MHZ_IN U1.AC21 Y2.1; 13MHZ_OUT R19.2 U1.AD21; 32KHZ_IN 46.1 C8.2 U1.AA22; |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|