Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

arguments passed to a perl script 1

Status
Not open for further replies.

motte

Programmer
May 31, 2001
155
US
is this correct?
find . -name '*.mike' |fixup.pl

where fixup.pl takes one argument at a time, a file name.

I have a script that takes files and converts some of the text to something else. But I want to do, instead of inputting each argument manually, is to have unix do it for me. I can find the files but how to I get them to be the argument in the script, thus running the script?

The file is at the same level in the same directory as the fixup.pl script. What am I doing wrong...new to unix as you can tell.

Mike

 
never mind, figured it out.
find . -name '*.mike' -exec fixup.pl {} \;

mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top