Skip to content

Instantly share code, notes, and snippets.

@jrherr
Last active December 31, 2015 11:49
Show Gist options
  • Save jrherr/7982076 to your computer and use it in GitHub Desktop.
Save jrherr/7982076 to your computer and use it in GitHub Desktop.
batch rename of FASTA files - I had to recently use this one-liner to rename a large number of sequence reads which were sent to me. I'm just posting this here so I can remember it.
awk ‘/^>/{$0=”>”++i}1′ test.fna > test1.fna
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment