~/MyPerl
|
|__ ans # this stores all the .fasta files (input)
|__ result_ans # to store the result
|__ mycode.pl
####
find ans/ -name '*.fasta' -maxdepth 1 -print0 \
| xargs -r -0 -P5 -n1 sh -c 'perl mycode.pl "$1" > ~/MyPerl/result_ans/"$1".out' ''
####
: /home/myname/MyPerl/result_ans/ans/hm14_ans.fasta.out: No such file or directory