How can I know if a file is a binary file?
For example, compiled c file.
I want to read all files from some directory, but I want ignore binary files.
I use
! grep -qI . $path
Only drawback I can see is that it will consider an empty file binary but then again, who decides if that is wrong?