![]() |
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 |
| Simple Question | aforball | UNIX for Dummies Questions & Answers | 3 | 03-04-2008 04:26 PM |
| sed - simple question | scotty_123 | Shell Programming and Scripting | 13 | 03-29-2007 02:23 AM |
| Simple C question... Hopefully it's simple | Xeed | High Level Programming | 6 | 12-15-2006 02:29 PM |
| Ok simple question for simple knowledge... | Corrail | UNIX for Dummies Questions & Answers | 1 | 11-28-2005 01:03 PM |
| Simple ksh question | frustrated1 | Shell Programming and Scripting | 1 | 11-05-2003 12:41 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
simple sed question
hi
is it possible to cut this two semicolon separated sed commands echo "string2 string3 string1" | sed s'/string1//g;s/string2//g' output: " string3 " to just one sed command without semicolon? thanks in advance funksen |
|
||||
|
thanks,
that was just an example, I want to cut out two or more strings out of a line or replace it with any other string I specify what I want two know is how to combine search strings, like find string1 and string2 and string3 and replace all of them with the same string, and all in the same sed command like sed 's/string1 AND string2 AND string3/string4/g' should replace any appearance of string1, string2 and string3 with the same string, string4 which can be in any order in one line, with 100 other strings hope its clear what I mean |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|