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.
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
You should have
for ...
do
code here
done
for ...
do
code here
done
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
do
Nor
done