Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- find $PWD -type d | grep -v "^$PWD$" | \
- while read THISDIR
- do
- cd "$THISDIR"
- ls | while read FILE
- do
- mv "${FILE}" "${FILE/#[0-9]* - /}"
- done
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement