greatshots has asked for the wisdom of the Perl Monks concerning the following question:
The above commad run against 450 files. I would also like to print the input_file_name which is being processed inside the perl code. how to get that?perl -nle '/TABLE;(.*)/?($t=$1):/COLUMN;([^;]*)/&&print(qq{$t.$1})' *
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to get the input file name when perl script runs from the command line?
by davido (Cardinal) on Oct 20, 2006 at 02:58 UTC | |
by greatshots (Pilgrim) on Oct 20, 2006 at 03:10 UTC |