Last active
September 17, 2016 15:42
-
-
Save ebridges/f040439a1cc6c505bc78ebf5d2b13b32 to your computer and use it in GitHub Desktop.
Lists all JPEGs under a directory into a format indexed by filename.
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
find . -iname '*.jpg' -not -path '*.AppleDouble*' -print0 \ | |
| while read -d $'\0' file; \ | |
do \ | |
FILE=`basename "$file"` && echo "$FILE^$file" ; \ | |
done > list.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment