mb92 has asked for the wisdom of the Perl Monks concerning the following question:
I need to write a perl script that searches for a file from standard input and then opens the file along with line numbers to the left of every line.. Been sitting for hours but haven't got it to work. Tips?
I managed to get it work with the help of: system("find -type f -iname '$filename' -print -exec cat -n {} +"); but that is not pure perl code.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: School assignment
by thanos1983 (Parson) on Sep 20, 2014 at 01:48 UTC | |
|
Re: School assignment
by karlgoethebier (Abbot) on Sep 20, 2014 at 12:21 UTC | |
|
Re: School assignment ( File::Finder )
by Anonymous Monk on Sep 20, 2014 at 06:47 UTC |