Skip to content

Instantly share code, notes, and snippets.

@armoucar
Last active December 11, 2015 14:21
Show Gist options
  • Save armoucar/5267e70d1e67109074f0 to your computer and use it in GitHub Desktop.
Save armoucar/5267e70d1e67109074f0 to your computer and use it in GitHub Desktop.
Beautiful command line to organize pictures.
exiftool '-FileName<DateTimeOriginal' -d "%Y-%m-%d %H.%M.%S%%-c.%%e" dir/*.jpg # jpg
exiftool '-FileName<CreateDate' -d "%Y-%m-%d %H.%M.%S%%-c.%%e" ./*.mp4 # mp4
for f in *; do mv "$f" "`echo $f | tr "[:upper:]" "[:lower:]"`"; done #rename files to lowercase
youtube-dl https://www.youtube.com/playlist?list=ListID --output './%(autonumber)s-%(title)s.%(ext)s'
# Download all images from a page
wget http://whatever.com/ -p -A .jpg,.jpeg,.png -H -nd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment