Reviewing random files

September 20, 2018

I have Cygwin and Git Bash installed on my Windows machine. The following technique only works if you have both those installed.

If you want to randomly select files for review (maybe for, say, adding photos to a website), you can use this technique to sort through some random selections.

Step 1: list all the files (and not the folders)

find . -type f > all_files.txt

Step 2:
run this in Git Bash to have Windows choose the program to review the file for you. The quotation marks are important.

explorer "$(cygpath -wa "$(shuf -n1 all_files.txt )")"

Contact me at renaissance.nomad (at) google.com