Advertisement
Vodkaholic

Untitled

Apr 13th, 2011
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. find $PWD -type d | grep -v "^$PWD$" | \
  4. while read THISDIR
  5. do
  6. cd "$THISDIR"
  7. ls | while read FILE
  8. do
  9. mv "${FILE}" "${FILE/#[0-9]* - /}"
  10. done
  11. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement