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.
Try the following command-line:
file "$FILE" | grep -vq 'ASCII' && echo "$FILE is binary"