Last Updated: January 15, 2019
·
1.332K
· 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'