There is always perl, e.g.: find . -name '*.txt' -exec cat {} \; | perl -ne 'qx(something $_);' To execute the command "something" with the argument of the current line of the current file of all files ending in ".txt" under the current working directory. -- Guy