![]() |
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 |
| cp -r excluding certain directories? | sarnobat | Shell Programming and Scripting | 2 | 01-13-2009 07:30 PM |
| printing strings in one X number of times from another | dcfargo | Shell Programming and Scripting | 5 | 06-16-2008 05:48 PM |
| Secondary groups show in groups but don't show in id (Not working) | zen03 | HP-UX | 4 | 12-31-2007 11:15 AM |
| How to concatenate two strings or several strings into one string in B-shell? | fontana | Shell Programming and Scripting | 2 | 08-26-2005 11:58 AM |
| excluding directories while using tar | uchachra | UNIX for Dummies Questions & Answers | 2 | 03-12-2002 02:38 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
excluding two or more groups of strings from printing
sample text:
001 the quick brown fox jumps 987 over a lazy dog 002 the quick brown fox jumps 999 over a lazy dog 003 the quick brown cow jumps 888 over a lazy dog 004 the quick brown fox jumps 777 over a lazy dog 005 the quick brown fox jumps 666 over a lazy cat i want to do something like: cat text | egrep -v ""brown fox"|"lazy dog"" (ofcourse this doesn't work) which should yield: 003 the quick brown cow jumps 888 over a lazy dog 005 the quick brown fox jumps 666 over a lazy cat TIA, Marc |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|