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 ?
In reply to searching a string in many files by tos
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |