tableorlist - get file format
SYNOPSIS
tableorlist [tableorlist...] [< tableorlist]
DESCRIPTION
tableorlist
prints the word
table
or
list,
depending on the format of the input file(s).
If the first character of the file is a newline,
it is a list (status code 1); otherwise, it is a table
(status code 0).
EXAMPLE
$ tableorlist inventory
table
$ echo $?
0
The
$?
is the (Bourne or Korn) shell status set on program exit.
SEE ALSO