Advertisement
Guest User

Untitled

a guest
Nov 6th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. 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