print next line IF statement

print next line IF statement

0

Heys,

I’m working with a fasta file with several individuals and I want to split them by a particular coordinate in the genome. I wrote this:

for i in $(cat fasta.file);
do
if [[ $i == *"coordinate"* ]];
then
echo $i AND THE NEXT LINE
fi
done

How can I say to print the next line, that in fact is the bases that I am interested in?

Thanks in advance!!


bash

• 39 views

Read more here: Source link