Created
January 6, 2017 20:49
-
-
Save ruxi/65f4525cc34fcdd409a262b207c6cf3e to your computer and use it in GitHub Desktop.
bulk rename script. From [stackoverflow answer](http://unix.stackexchange.com/questions/19654/changing-extension-to-multiple-files)
This file contains hidden or 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
# Rename all *.fasta to *.sra | |
for f in *.fasta; do | |
mv -- "$f" "${f%.fasta}.sra" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment