Link to home
Start Free TrialLog in
Avatar of StephenMcGowan
StephenMcGowan

asked on

Shell coding

Hi,

I'm trying to get a shell script to run. I think I've correctly defined both $database and $antibodydb, but I'm currently receiving the error output:

genomevsantibody.sh: line 4: syntax error near unexpected token `for'
genomevsantibody.sh: line 4: `for antibodydb in $(find ~/DatabaseTesting -name "                                                                                                                                                             *ABDatabase")'

any advice with this would be much appreciated. Thanks.
#!/bin/bash
for database in $(find ~/Genomes -name "*DATABASE")

for antibodydb in $(find ~/DatabaseTesting -name "*ABDatabase")

do
   echo "Processing $database"
   blastall -p blastp -m 8 -d $antibodydb -i $database >> GenomeBlastResults.txt

done

Open in new window

Avatar of farzanj
farzanj
Flag of Canada image

First for neither has
do
Nor
done
You should have
for ...
do
    code here
done
ASKER CERTIFIED SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial