Skip to content

Instantly share code, notes, and snippets.

@ebridges
Last active September 17, 2016 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ebridges/f040439a1cc6c505bc78ebf5d2b13b32 to your computer and use it in GitHub Desktop.
Save ebridges/f040439a1cc6c505bc78ebf5d2b13b32 to your computer and use it in GitHub Desktop.
Lists all JPEGs under a directory into a format indexed by filename.
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