![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| converting all records of a file in to one record | rsriramiyer | Shell Programming and Scripting | 2 | 04-22-2009 12:05 PM |
| Script to display record spanning over multiple lines | Ujan | Shell Programming and Scripting | 2 | 03-05-2009 06:06 AM |
| Parsing records from one record | bwrynz1 | UNIX for Advanced & Expert Users | 1 | 03-10-2008 10:54 AM |
| Parsing out records from one huge record | bwrynz1 | UNIX for Dummies Questions & Answers | 4 | 03-07-2008 05:57 PM |
| shell script parsing with sed | jjamd64 | UNIX for Dummies Questions & Answers | 5 | 12-11-2007 04:51 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Code:
$sed -e 's/ADD/\n&/g' -e 's/DELETE/\n&/g' -e 's/MODIFY/\n&/g' ADD|N000|8015662|DELETE|N001|9915662|MODIFY|N999|85678 ADD|N000|8015662| DELETE|N001|9915662| MODIFY|N999|85678 |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|