I'm trying to run this for loop but I'm getting the same error message: -bash: [: missing `]'
for FILE in *.fasta
do
a=$(grep -c ">" $FILE)
if [ "$a" == 15]
then
mv $FILE folder/
fi
done
Any help will be appreciated.
Thanks!
I'm trying to run this for loop but I'm getting the same error message: -bash: [: missing `]'
for FILE in *.fasta
do
a=$(grep -c ">" $FILE)
if [ "$a" == 15]
then
mv $FILE folder/
fi
done
Any help will be appreciated.
Thanks!