6afryw
Last Updated: January 15, 2019
·
39
· phaus

How to recursively find all binary/non-binary files in a directory

Find all Binary Files

find . -type f | perl -lne 'print if -B'

Find all Text Files

find . -type f | perl -lne 'print if -T'