LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   running a shell script which invokes another shell program!!! (https://www.linuxquestions.org/questions/programming-9/running-a-shell-script-which-invokes-another-shell-program-660341/)

raghu123 08-04-2008 08:49 AM

running a shell script which invokes another shell program!!!
 
Hi to all,

i hav a program called DaliLite to be run on 6o proteins.......
the syntax s Dalilite -pairwise pdb1 pdb2
so hav to generate a script for runnin Dalilite foe all 60 vs 60 entries.....

I knw i hav to tak the contents of my input file to an array and then finally say $i $j........but i need $j > $i only to be run.....
for eq.
DAlilite -pairwise pdb5 pdb55 etc.
i don want pdb5 pdb5 or pdb5 pdb3 etc.....

KIndly help this out........

unSpawn 08-04-2008 09:10 AM

Something like 'for ((i=1;i<55;i++)); do Dalilite -pairwise pdb$i pdb$[$i+1]; done'?

[EDIT]Soz. Posted too soon. Needs something wrapped around that. Maybe something like 'for ((i=1;i<61;i++)); do for ((n=1;n<61;n++)); do [ $i -ne $n -a $i -le $n ] && Dalilite -pairwise pdb$i pdb$n; done; done'?[/EDIT]


All times are GMT -5. The time now is 05:45 PM.