![]() |
|
|
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 |
| How do i remove commas(,) & spaces | anushree.a | Linux | 5 | 05-26-2008 03:39 AM |
| formatted output with commas | joeyg | Shell Programming and Scripting | 4 | 03-04-2008 03:54 PM |
| csv files (with quoted commas) and awk | Cranie | UNIX for Dummies Questions & Answers | 3 | 08-08-2007 07:09 AM |
| count commas in a script | obedkhan | HP-UX | 2 | 02-25-2006 10:35 PM |
| tab delimited file to commas | hcclnoodles | Shell Programming and Scripting | 6 | 08-16-2004 02:23 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
substitute commas with pipe
Hi All,
I have a file that contain value below: test,mno,mno, +asc mno,lok,msyu,tts test,poi,test,0,90, 3,00 i need to substitute the comma's into pipe where i used the command below :s/,/|/g then it change to below: test|mnb|mno| +asc mno|lok|msyu|tts test|poi|test|0|90| 3|00 my objective is to change all the commas to pipe but for the 0|90 and 3|00 i want it to maintain the comma's which is 0,90 and 3,00?So any suggestion? |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|