http://www.perlmonks.org?node_id=1007923


in reply to How can I run an folder full of text files through a perl script?

Karl-Mac-mini:find karl$ find . -type f -name "*.txt" | xargs ./perl.p +l bar foo

Update: or find . -type f -name "*.txt" -exec ./perl.pl {} \;

See find, xargs

Update: For xargs vs exec see: 1 2 3

Regards, Karl

«The Crux of the Biscuit is the Apostrophe»