raghu_shekar has asked for the wisdom of the Perl Monks concerning the following question:
can someone please tell me how can i use an awk command and a grep command together using pipes and backtics.
for example:when i use this in a script i get the below error :`awk '/fileid/,/^-----/' logfile | grep specificdata`
sh[2]: 0403-057 Syntax error at line 2 : `|' is not expected.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: usage of awk and grep together
by juster (Friar) on May 20, 2009 at 05:36 UTC | |
by JavaFan (Canon) on May 20, 2009 at 08:19 UTC | |
by raghu_shekar (Novice) on May 20, 2009 at 06:33 UTC | |
by juster (Friar) on May 20, 2009 at 18:18 UTC | |
|
Re: usage of awk and grep together
by johngg (Canon) on May 20, 2009 at 09:13 UTC | |
|
Re: usage of awk and grep together
by ELISHEVA (Prior) on May 20, 2009 at 09:35 UTC | |
|
Re: usage of awk and grep together
by Bloodnok (Vicar) on May 20, 2009 at 10:58 UTC |