Skip to content

Instantly share code, notes, and snippets.

@HymanZHAN
Created April 30, 2024 03:15
Show Gist options
  • Save HymanZHAN/7a527056f0b2022739d02dd0d0661d9f to your computer and use it in GitHub Desktop.
Save HymanZHAN/7a527056f0b2022739d02dd0d0661d9f to your computer and use it in GitHub Desktop.
ls -s modified *.mp4 --no-quotes | cat -n | while read n f; do mv "$f" "$(printf "%s - %s" $n $f)"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment