Skip to content

Instantly share code, notes, and snippets.

@karl-gustav
Last active February 12, 2020 08:36
Show Gist options
  • Save karl-gustav/bb942470cdb2cace88ca5fdf080b42f7 to your computer and use it in GitHub Desktop.
Save karl-gustav/bb942470cdb2cace88ca5fdf080b42f7 to your computer and use it in GitHub Desktop.
Useful commands
# Move pictures from iPhone 7 into separate file structure:
find . -iname '*.JPG' -or -iname '*.JPEG' |while read line; do jhead "$line" |grep "Camera model : iPhone 7" && (mkdir -p $(dirname "${line/./.\/KGR}") ;mv "$line" "${line/./.\/KGR}" ) ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment