tos has asked for the wisdom of the Perl Monks concerning the following question:
given : n files named 'kn' in different directories 'nc05*'.
in the bash it's very easy to retrieve a certain customer-number somewhere in this files with a compact grep-command# echo nc05*/kn nc05xa01/kn nc05xa02/kn nc05xa03/kn nc05xa04/kn nc05xa05/kn nc05xa06/k +n nc05xn01/kn
I would like to do this in perl in a manner which is similar compact.# grep 10450676 nc05*/kn nc05xa02/kn:10450676 130//0004208/06//50668 371669346 371851024
any suggestions ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: searching a string in many files
by broquaint (Abbot) on Jun 25, 2003 at 13:57 UTC | |
|
Re: searching a string in many files
by pzbagel (Chaplain) on Jun 25, 2003 at 13:47 UTC | |
by revdiablo (Prior) on Jun 25, 2003 at 21:08 UTC | |
by pzbagel (Chaplain) on Jun 27, 2003 at 18:05 UTC | |
by Anonymous Monk on Jun 25, 2003 at 21:10 UTC |