Hi there, how many times we download a FASTA file that contains a huge and enormous fasta header like this:
So, to clean up the header, just use this simple command line:
EXAMPLE:
And the output will be:
Hope this helps
Benjamin.
So, to clean up the header, just use this simple command line:
$ cat <input_file> | awk '{print $1}' > <output_file>
$ cat data.fa | awk '{print $1}' > data_parsed.fa
Hope this helps
Benjamin.