Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- find /dir | while IFS='' read -r i; do filename=$(basename "$i"); firstpart=${filename:0:4}; secondpart=${filename: -4}; echo mv "$filename" "${secondpart}-${firstpart}"; done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement