Samirx K Patel wrote:
>
> If I want to run a script on any file with a .vhd extension in the
> directory, how do I pass *.vhd to the perl script?
>
> Easy one-line example (Note, I'm running on Windows): Say I want to find the
> pattern "COMPONENT" in any file with a .vhd extension:
>
> perl -l
If I want to run a script on any file with a .vhd extension in the
directory, how do I pass *.vhd to the perl script?
Easy one-line example (Note, I'm running on Windows): Say I want to find the
pattern "COMPONENT" in any file with a .vhd extension:
perl -lane "if (/COMPONENT/) { printf \"$AR