3 added 17 characters in body
source | link

With GNU sed (standard on Linux system), you can get the header line (containing a V anywhere on it) and the first line of the sequence from a fasta file like this:

sed -n '/^>.*V/,+1p' sequence.fa

This is assuming that the fasta file is properly formatted.

The -n turns off the default output and /^>.*V/,+1p will print any header line with a V andin it, together with the immediately following line.

With GNU sed (standard on Linux system), you can get the header line (containing a V anywhere on it) and the first line of the sequence from a fasta file like this:

sed -n '/^>.*V/,+1p' sequence.fa

This is assuming that the fasta file is properly formatted.

The -n turns off the default output and /^>.*V/,+1p will print any header line with a V and the immediately following line.

With GNU sed (standard on Linux system), you can get the header line (containing a V anywhere on it) and the first line of the sequence from a fasta file like this:

sed -n '/^>.*V/,+1p' sequence.fa

This is assuming that the fasta file is properly formatted.

The -n turns off the default output and /^>.*V/,+1p will print any header line with a V in it, together with the immediately following line.

2 edited body
source | link

With GNU sed (standard on Linux system), you can get the header line (containing a V anywhere on it) and the first line of the sequence from a fasta file like this:

sed -n '/^>.*V/,+1p' sequence.fa

This is assuming that the fasta file is properly formatted.

The -n turns off the default output and /^>.*V/,+1p will print theany header line with a V and the immediately following line.

With GNU sed (standard on Linux system), you can get the header line (containing a V anywhere on it) and the first line of the sequence from a fasta file like this:

sed -n '/^>.*V/,+1p' sequence.fa

This is assuming that the fasta file is properly formatted.

The -n turns off the default output and /^>.*V/,+1p will print the header line with a V and the immediately following line.

With GNU sed (standard on Linux system), you can get the header line (containing a V anywhere on it) and the first line of the sequence from a fasta file like this:

sed -n '/^>.*V/,+1p' sequence.fa

This is assuming that the fasta file is properly formatted.

The -n turns off the default output and /^>.*V/,+1p will print any header line with a V and the immediately following line.

1
source | link

With GNU sed (standard on Linux system), you can get the header line (containing a V anywhere on it) and the first line of the sequence from a fasta file like this:

sed -n '/^>.*V/,+1p' sequence.fa

This is assuming that the fasta file is properly formatted.

The -n turns off the default output and /^>.*V/,+1p will print the header line with a V and the immediately following line.