Skip to content

Instantly share code, notes, and snippets.

@jehanf
Last active March 26, 2021 13:46
Show Gist options
  • Save jehanf/ae603126c518008c38095b4066d15103 to your computer and use it in GitHub Desktop.
Save jehanf/ae603126c518008c38095b4066d15103 to your computer and use it in GitHub Desktop.
Linux : List all images in a folder and print the list in a file
find . -name '*' -exec file {} \; | grep --line-buffered -o -P '^.+: \w+ image' > images.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment