Last active
December 31, 2015 11:49
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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