Skip to content

Instantly share code, notes, and snippets.

@ksloan
Created April 24, 2014 19:34
Show Gist options
  • Save ksloan/11266733 to your computer and use it in GitHub Desktop.
Save ksloan/11266733 to your computer and use it in GitHub Desktop.
remove prefix from filenames
ls | while read f; do f_new=`echo $f | sed 's/prefix//'`; mv "'$f'" "'$f_new'"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment