Last active
February 12, 2020 08:36
-
-
Save karl-gustav/bb942470cdb2cace88ca5fdf080b42f7 to your computer and use it in GitHub Desktop.
Useful commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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