Skip to content

Instantly share code, notes, and snippets.

View asperduti's full-sized avatar
🏠
Working from home

Ariel Sperduti asperduti

🏠
Working from home
View GitHub Profile
@asperduti
asperduti / renameImages.sh
Created March 11, 2018 12:42
Bash script to rename images. The new name is going to have the creation date that is in the metadata.
jhead -nIMG_%Y%m%d_%H%M%S *.JPG
@asperduti
asperduti / renameFilesByDate.sh
Last active March 11, 2018 12:41
Bash script to rename all the files with an extension(in this case, MP4). The new name is going to have the creation date.
for f in *.MP4; do mv -n "$f" "VID_$(date -r "$f" +"%Y%m%d_%H%M%S").mp4"; done