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 48
ARG1 + ARG2 arithmetic sum of ARG1 and ARG2
ARG1 - ARG2 arithmetic difference of ARG1 and ARG2
ARG1 * ARG2 arithmetic product of ARG1 and ARG2
ARG1 / ARG2 arithmetic quotient of ARG1 divided by ARG2
ARG1 % ARG2 arithmetic remainder of ARG1 divided by ARG2
STRING : REGEXP anchored pattern match of REGEXP in STRING
match STRING REGEXP same as STRING : REGEXP
substr STRING POS LENGTH substring of STRING, POS counted from 1
index STRING CHARS index in STRING where any CHARS is found,
or 0
length STRING length of STRING
quote TOKEN interpret TOKEN as a string, even if
it is a keyword like `match' or an
operator like `/'
( EXPRESSION ) value of EXPRESSION
Beware that many operators need to be escaped or quoted for shells. Comparisons are arithmetic
if both ARGs are numbers, else lexicographical. Pattern matches return the string matched
between \( and \) or null; if \( and \) are not used, they return the number of characters matched
or 0.
5.3.14 false
Syntax: false
Return an exit code of FALSE (1).
Example:
$ false
$ echo $?
1
5.3.15 fbset
Syntax: fbset [options] [mode]
Show and modify frame buffer settings.
Example:
$ fbset
mode "1024x768-76"
# D: 78.653 MHz, H: 59.949 kHz, V: 75.694 Hz
geometry 1024 768 1024 768 16
timings 12714 128 32 16 4 128 4
accel false
rgba 5/11,6/5,5/0,0/0
endmode
5.3.16 find
Syntax: find [PATH...] [EXPRESSION]
Search for files in a directory hierarchy. The default PATH is the current directory; default
EXPRESSION is '-print'
EXPRESSION may consist of: