what - display binary identification strings
what [ options ] [ file ... ]
searches the given files for all occurrences of the identification pattern @(#)
and writes a line
to the standard output containing the text that follows until the first occurrence of one of the following: " < > \ $
. If no file
is given or if a file
then the standard input is read. The name of each input
file, followed by a :
, is also written as a separate line to the standard output.
- -m, --matched
Only list the names of files that match the identification pattern.
- -s, --first|single
Find only the first occurrence of the pattern in each file.
- Some matches were found.
- Option error.