![]() |
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 |
| gnu sed replace space with new line | xserg | Shell Programming and Scripting | 1 | 03-15-2009 03:31 PM |
| Cannot replace null with space | rikxik | Shell Programming and Scripting | 1 | 03-06-2009 12:13 AM |
| replace space by _ | ruben.rodrigues | Shell Programming and Scripting | 6 | 01-21-2009 11:27 AM |
| Replace NULL with space | pukars4u | UNIX for Dummies Questions & Answers | 1 | 06-22-2008 05:15 AM |
| replace tab with space | avnerht | UNIX Desktop for Dummies Questions & Answers | 1 | 06-13-2002 07:30 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Replace space and vertical bar with verical bar
I am trying to get sed, tr or awk to search a file that contains records with fields delimited by the vertical bar | and replace the occurrences in the records where the vertical bar is preceded by a space " |" with a vertical bar.
Sample data record zelli |||59 Stonewall Dr ||W Barnstable |MA ||00000|||man I need it to look like zelli|||59 Stonewall Dr||W Barnstable|MA||00000|||man Thanks for you help in advance. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|