home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam    

test

test expression
or
[ expression ]

Evaluate an expression and, if its value is true , return a zero exit status; otherwise, return a nonzero exit status. In shell scripts, you can use the alternate form [ expression ] . The brackets are typed literally and must be separated from expression . Generally, this command is used with conditional constructs in shell programs. See Chapter 4 for more information on test .


Previous: Reference: telnet UNIX in a Nutshell: System V Edition Next: Reference: time
Reference: telnet Book Index Reference: time

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System










??????????????@Mail.ru