Search code examples
shellparallel-processinggnu-parallel

Using multiple processer to run the shell script


Shell :

for a in `ls -1 *.pdb`; do ./fud --pdb=$a --command=run --state=-CRYSTAL --element=ion ; done 

cat //home/*.fxout  >> results.out

fgrep -v 1 results.out > new.out

Solution

  • Consider using GNU Parallel like this:

    parallel ./fud —pdb={} —command=run —state=-CRYSTAL —element=ion ::: *.pdb
    

    There’s a great tutorial here.