Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. ls | cat -n | while read n f; do mv "$f" `printf "video_%03d.mp4" $n`; done
  2.  
  3. video_001.mp4
  4. video_002.mp4
  5. video_003.mp4
  6. and so on...
  7.  
  8. i=1; for file in *.mp4; do mv "$file" $(printf "video_%03d.mp4" "$i"); i=$((i + 1)); done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement