![]() |
|
|
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 |
| grep for pattern | aemunathan | Shell Programming and Scripting | 12 | 05-09-2008 03:58 AM |
| How to grep this pattern?? | askumarece | Shell Programming and Scripting | 13 | 02-20-2008 07:03 AM |
| unable to grep the following pattern | suri | Shell Programming and Scripting | 2 | 03-07-2007 03:03 AM |
| grep for more than one pattern | frustrated1 | Shell Programming and Scripting | 4 | 12-13-2005 01:49 PM |
| search pattern by grep | vijaysabari | Shell Programming and Scripting | 3 | 06-23-2004 04:03 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
help with grep the pattern
I have those lines in a file:
:startStr xxxxxxx(anything) STRING1 xxxxxx startStr xxxxxxx STRING1 xxxxxxxxxxxxx startStr xxxxxxxxx STRING2 xxxxxxxx ....... grep only the lines starting "startStr" (without ":") & with "STRING1" -e.g. the second line in the above file I use the following which works but how to also include the "startStr"?? grep '^[^:]*STRING1' * Thanks!! |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|