cd ~/directory/with/files/to/process ls -1 | xargs -n1 -P 10 perl -w process_script.pl -args