![]() |
|
|
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 |
| Lost with terms | new2ss | UNIX for Dummies Questions & Answers | 3 | 10-04-2007 10:30 AM |
| Alignment of terms to the left | Raynon | Shell Programming and Scripting | 2 | 09-11-2007 09:35 PM |
| Need to strip a string | x96riley3 | Shell Programming and Scripting | 6 | 01-27-2007 09:21 AM |
| Some Basic terms in UNIX | nervous | UNIX for Dummies Questions & Answers | 3 | 01-09-2007 03:21 AM |
| laymens terms for netstat states | eloquent99 | IP Networking | 1 | 03-10-2003 11:02 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How to strip out common terms in string
Hi,
I have this kinda of data:- 0,0,0,0,1,2,0,4,5,6,7,foo 0,0,0,0,1,4,0,5,5,5,5,foo1 0,0,6,0,1,6,0,6,1,2,3,orange etc... I wanted to remove the 0 which occur on the same rows of foo,foo1 and orange in this case. Desired output is:- 0,1,2,4,5,6,7,foo 0,1,4,5,5,5,5,foo1 6,1,6,6,1,2,3,orange In other words, those with zeros occuring on all rows, i wanted it to removed from the string. Anyone could advise. THanks. |
| Bookmarks |
| Tags |
| awk, awk trim, trim, trim awk |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|