.TH tableorlist "" "" "/rdb Command" .PC "Report whether a file has table or list format" \fBtableorlist [\fItableorlist ...\fB] [< \fItableorlist\fB]\fR .PP .II "table^check if file is" .II "list^check if file is" The command .B tableorlist checks whether .I tableorlist is a table or a list. If it is a list (that is, its first character is a newline), then .B tableorlist prints the string ``list'' and returns status code 1 to the shell; otherwise, it prints the string ``table'' and returns status code 0. .SH Example To check if .B inventory is a table or list, type: .DM tableorlist inventory .DE .PP This prints .DM table .DE .PP on the standard output. To check what status value .B tableorlist returned, type: .DM echo $? .DE You'll see: .DM 0 .DE .SH "See Also" .B listtotable, tabletolist .R .br COHERENT Lexicon: .B file .R