C. Index
From the list below, select the letter that is the
first character of the topic you want to find:
A B C
D E F G
H I J K
L M N O
P Q R S
T U V W
X Y Z
-
.
-
;
-
;;
-
()
-
{}
-
[]
-
<
-
<<
-
<&
-
<&-
-
>
-
>>
-
>&
-
>&-
-
&
-
&&
-
|
-
||
-
''
-
""
-
``
-
\
-
#
A
-
and, -a
-
arguments
-
functions as arguments
to test conditions
-
of for loops
-
of functions
-
arithmetic
-
using bc
-
using expr
B
-
background,
&
-
back quotes, ``
-
see command substitution
-
bc
-
reading from files
-
break
-
sh man page description
C
-
case
-
double semi-colons,
;;, in case statement
-
parentheses, (),
in case statements
-
regular
expressions in case statements
-
syntax
-
cd
-
sh man page description
-
command line debugging
-
command line options
-
colon, :
-
sh man page description
-
command
substitution, ``
-
debugging scripts
-
for loop argument
-
effects of eval
-
nesting commands
-
comments,
#
-
inline
-
line
-
continue
-
sh man page description
-
curly
braces, {}
-
function delimiter
-
dereferencing variables
-
using for grouping v. variables
D
-
debugging scripts
-
command line debugging
-
examples of when
to use
-
declaring the shell
-
null commands
-
interpreting errors
-
examples
-
malformed if
-
malformed test
-
missing arguments
-
missing quotes
-
how the shell reports syntax
errors
-
pausing a script's execution
-
continuing a paused
script
-
example
-
terminating a paused
script
-
using set
-x and read
-
tracing a script's execution
-
enabling with a script
option
-
disabling tracing
-
tracing example
-
using in conjunction
with pausing
-
using set -x
-
using set -xv
-
using sh -x
-
do
-
in for loops
-
in until loops
-
in while loops
-
done
-
in for loops
-
in until loops
-
in while loops
-
dot
-
sh man page description
-
double
ampersand, &&
-
double
quotes, ""
-
escaping metacharacters
-
patterns containing white space
-
testing strings
-
using with functions
as arguments to test conditions
-
using with escape
-
using with single quotes
-
double
semi-colons, ;;
-
double
vertical bar, ||
E
-
echo
-
sh man page description
-
elif
-
else
-
environment
-
variables
-
escape,
\
-
escaping metacharacters
-
line continuation
-
using with double quotes
-
esac
-
eval
-
behavior
-
definition
-
sh man page description
-
exec
-
definition
-
script I/O
-
exit
-
handling errors with
-
sh man page description
-
export
-
sh man page description
-
expr
F
-
false
-
fi
-
file descriptors
-
redirection
-
stderr
-
stdin
-
stdout
-
filename expansion
-
as for loop argument
-
effects of eval
-
special characters
-
for loop
-
argument list
-
generating
-
behavior
-
definition
-
intermediate variable usage
-
positional parameters usage
-
syntax
-
functions
-
as an argument to
test conditions
-
quoting
-
declaration
-
argument
list
-
body
-
delimiter
-
label
-
rules
-
definition
-
invoking
-
modularity
-
including
in multiple scripts
-
nesting
-
performance
-
improving
script performance
-
vs
sourcing
-
vs
subscripts
-
properties
-
return value
-
checking
with $?
-
default
-
returning from a function
-
scope
-
of
nested functions
-
of
variables declared by functions
G
-
getopts
-
behavior
-
definition
-
OPTARG variable
-
processing command line options
-
sh man page description
-
syntax
-
usage
H
-
hash
-
sh man page description
I
-
if
-
nesting if blocks
-
syntax
-
usage
-
I/O devices
-
/dev/console
-
/dev/null
-
/dev/tty
-
standard I/O
J
job control
K
L
-
loops
-
for loops
-
loop control
-
break
-
continue
-
while loops
-
until loops
M
-
metacharacters
-
table of
N
-
newgrp
-
sh man page description
O
-
operators
-
arithmetic
-
file
-
negation of
-
table of
-
integral
-
list of
-
logical
-
and, -a
-
or, -o
-
usage
-
string
-
table of
-
options
-
arguments to
-
definition
-
forms
-
separated
-
stacked
-
processing
-
getopts
-
positional
parameters
-
shell options, set
-
OPTARG
-
or, -o
P
-
parameters
-
positional
-
as function
arguments
-
as for
loop arguments
-
changing with
set
-
handling command
line options with
-
special
-
parameter substitution
-
parentheses,
()
-
role in function
declaration
-
usage in case
statements
-
period
-
See dot
-
pipe,
|
-
filtering with
-
pwd
-
sh man page description
Q
-
quoting
-
forms of
-
testing strings with
quotes
R
-
read
-
pausing script
execution
-
reading from files
-
sh man page description
-
readonly
-
sh man page description
-
redirection
-
file descriptors
-
stderr
into stdout
-
input
-
file
based, <
-
interactive,
<<
-
syntax
-
loops
-
output
-
creating
new files with, >
-
appending
to existing files, >>
-
syntax
-
script I/O
-
regular expressions
-
using in
case statements
-
utilities
-
table of
-
return
-
checking
return value with $?
-
default value
-
function control
-
sh man page description
-
syntax
S
-
scripts
-
argument for
-
body
-
comparison to essay
-
declaring shell to use
-
terminating
-
set
-
options
-
positional parameters
-
sh man page description
-
tracing scripts
-
semicolon
-
shift
-
in while loops
-
sh man page description
-
single
quotes, ''
-
escaping metacharacters
-
patterns containing white space
-
using with double quotes
-
signals
-
definition
-
detection of
-
handling with trap
-
list of
-
sending to a program
-
standard I/O
-
closing
-
file descriptors
-
redirection
-
reading
files with
-
script
I/O
-
stderr
into stdout
-
using exec
-
using loops
-
stderr
-
stdin
-
stdout
-
stop
-
sh man page description
-
subscripts
-
executing with exec
-
performance,
vs functions
-
performance,
vs sourcing
-
sourcing
-
synchronization
T
-
test
-
combining multiple tests into
one
-
file tests
-
forcing a test result
-
colon, :
-
false
-
true
-
functions as arguments
-
integer tests
-
sh man page description
-
square
brackets as test, []
-
syntax
-
vs test command
-
string tests
-
while loops
-
until loops
-
times
-
sh man page description
-
trap
-
behavior
-
definition
-
forms of
-
properties
-
sh man page description
-
signals
-
syntax
-
true
-
type
-
sh man page description
U
-
ulimit
-
sh man page description
-
umask
-
sh man page description
-
unset
-
sh man page description
-
until
loop
-
behavior
-
definition
-
syntax
-
test condition
V
-
variables
-
environment variables
-
exporting
-
positional parameters
-
properties
-
data types
-
permissions
-
read-only
-
read-write
-
scope
-
when
declared within a function
-
special parameters
-
storing
-
command output
-
filename expansion
-
quotes
-
white space
-
value
-
assignment
-
using parameter substitution
for defaults
-
using read
-
dereferencing
-
using braces
W
-
wait
-
sh man page description
-
while
loop
-
behavior
-
definition
-
shifting
-
syntax
-
test condition
X
Y
Z