System information
An Introduction to Shells in General
Axis Communications AB provides NO support for application development of any kind. The information
here is provided "as is", and there is no guarantee that any of the examples shown will work in your
particular application.
Revision 1.02 October 2002 57
5.3.39 rmdir
Syntax: rmdir [OPTION]... DIRECTORY...
Remove the DIRECTORY(ies), if they are empty.
Example:
# rmdir /tmp/foo
5.3.40 sed
Syntax: sed [-Vhnef] pattern [files...]
Options:
-n suppress automatic printing of pattern space
-e script add the script to the commands to be executed
-f scriptfile add the contents of script-file to the commands to be
executed
-h display this help message
If no -e or -f is given, the first non-option argument is taken as the sed script to interpret. All
remaining arguments are names of input files; if no input files are specified, then the standard
input is read.
Example:
$ echo "foo" | sed -e 's/f[a-zA-Z]o/bar/g'
bar
5.3.41 sleep
Syntax: sleep N
Pause for N seconds.
Example:
$ sleep 2
[2 second delay results]
5.3.42 sort
Syntax: sort [-n] [-r] [FILE]...
Sorts lines of text in the specified files.
Example:
$ echo -e "e
f
b
d
c
a" | sort
a
b
c
d
e
f