June 2004
Intermediate to advanced
1056 pages
39h 58m
English
exit
exit [n]Exit a shell script with status n (e.g.,
exit 1). n can be zero (success) or nonzero
(failure). If n is not given, exit status
will be that of the most recent command. exit can be issued at the
command line to close a window (log out).
if [ $# -eq 0 ]; thenecho "Usage: $0 [-c] [-d] file(s)"exit 1 # Error statusfi
Read now
Unlock full access