ls -l -rw-rw-r-- 1 io io 0 feb 2 13:28 one.txt -rw-rw-r-- 1 io io 0 feb 2 13:28 three.txt -rw-rw-r-- 1 io io 20 feb 2 13:37 two.txt perl -nlE 'say "processed $ARGV" if eof' *.txt processed two.txt