Shell Scripting
I have no idea how to write or run a shell script, however I would like to write one that would run 288 java programs sequentially (with each outputting to a different output file.
For example, were I just to run it in bash the command I would use is: Code:
java Grid1 < slab.gro > slab1.gro Code:
java Grid2 < slab.gro > slab2.gro Also, how would I run the shell script once it is written? After that is done, I would also like to run the command: Code:
genconf -f slab1.gro -o slab1.pdb Any help would be really, greatly appreciated! |
script.sh:
Code:
for i in $(seq 1 288) Code:
sh ./script.sh |
Oh, perfect! Thank you so much!
|
Give a man a fish.........
Bash Guide for Beginners---at tldp.org Classic Shell Scripting---O'Reilly |
All times are GMT -5. The time now is 05:31 PM. |