Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- find stats -mindepth 5 -maxdepth 5 -type d # (Or some other way of generating your list of directories)
- | while read dir
- do
- mv -v "$dir" "$(echo $dir | awk -F '/' '{ print $1"/"$2"/"$3"/"$4"/"$6"/"$5 }')"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement