Skip to content

Instantly share code, notes, and snippets.

@jupegarnica
Created January 1, 2021 09:48
Show Gist options
  • Save jupegarnica/fa37b3d44a49f5ac0e51324786f85253 to your computer and use it in GitHub Desktop.
Save jupegarnica/fa37b3d44a49f5ac0e51324786f85253 to your computer and use it in GitHub Desktop.
today=`date +"%Y-%m-%d"`
for f in *.AVI; do
mv -- "$f" "$today.${f%}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment