Skip to content

Instantly share code, notes, and snippets.

@taberh
Created October 18, 2013 02:29
Show Gist options
  • Save taberh/7035606 to your computer and use it in GitHub Desktop.
Save taberh/7035606 to your computer and use it in GitHub Desktop.
批量重命名
for i in `ls`; do mv -f $i `echo $i | sed 's/{match_reg}/{replace_reg}/'`; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment