in reply to Re: How to check whether the file is a string
in thread How to check whether the file is a string

Maybe the other Anonymous Monk wants to know whether a file contains "text"? -X, especially -T could be of help, except for non-ASCII text.

Replies are listed 'Best First'.
Re^3: How to check whether the file is a string
by RichardK (Parson) on Nov 12, 2011 at 13:31 UTC

    You could try the 'file' utility if your OS supports it. It will make a good guess at identifying what is in any file. -- if that's what's needed ;)