Re: Passing wildcards in filenames

2002-10-06 Thread John W. Krahn
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

Passing wildcards in filenames

2002-10-05 Thread Patel, SamirX K
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