Skip to content

Instantly share code, notes, and snippets.

@vidboda
Created April 23, 2018 12:34
Show Gist options
  • Save vidboda/0bc066b18d5cdbc05bc90eacfd169de3 to your computer and use it in GitHub Desktop.
Save vidboda/0bc066b18d5cdbc05bc90eacfd169de3 to your computer and use it in GitHub Desktop.
one liner to change file names with perl
#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