in reply to How to check whether the file is a string

What does that mean?
  • Comment on Re: How to check whether the file is a string

Replies are listed 'Best First'.
Re^2: How to check whether the file is a string
by Corion (Patriarch) on Nov 12, 2011 at 10:42 UTC

    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.

      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 ;)