Created
April 23, 2018 12:34
-
-
Save vidboda/0bc066b18d5cdbc05bc90eacfd169de3 to your computer and use it in GitHub Desktop.
one liner to change file names with perl
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
#adapted from https://github.com/Char-Al/Miscellaneous | |
for i in *.tsv; do NAME=$( perl -pe 's/^(\w+)\.tsv$/$1_coverage.tsv/g' <<< $i);mv $i $NAME;done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment