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'
Written by Philipp Haußleiter
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Cli
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#