Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SAVEIFS=$IFS
- IFS=$(echo -en "\n\b")
- for file_name in $(ls *.ogg)
- do
- file_number=$(echo "$file_name" | cut -d' ' -f 7 | cut -d '.' -f 1)
- mv $file_name $(printf "Track_%03d.ogg\n" $file_number)
- done
- IFS=$SAVEIFS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement