Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.13 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. ls | gsed -r 's/([a-zA-Z]*)([0-9]{4})(.*)/mv \1\2\3 \U\1\L`printf "%04d" $((10#\2 + 1)) | tail -c 4`\3/ge'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement