|
That test for -f will not help with an ASCII test. It determines if a filename is a regular file as opposed to a directory, a link, etc, and will return true even for binaries.
But I would start with that test, and if it is a regular file, then the "file" command will give a clue as to its content.
|