fish home | Main documentation page | About fish | External commands | How fish differs from other shells | Builtin commands | License

External commands

fish is shipped with commands which do not use any internal parts of the shell, and are therefore not written as builtins, but separate commands.

count - Count the number of elements of an array

Synopsis

count $VARIABLE

Description

count returns the number of arguments that where passed to it. This is usually used to find out how many elements an environment variable array contains, but this is not the only potential usage for the count command.

The count command does not accept any options, not even '-h'. This way the user does not have to worry about an array containing elements such as dashes. fish performs a special check when invoking the count program, and if the user uses a help option, this help page is displayed, but if a help option is contained inside of a variable or is the result of expantion, it will be passed on to the count program.

Example

count $PATH

returns the number of directories in the users PATH variable.

count *.txt

returns the number of files in the current working directory ending with the suffix '.txt'.

mimedb - Lookup file information via the mime database

Synopsis

mimedb [OPTIONS] FILES...

Description

set_color - Set the terminal color

Synopsis

set_color [-v --version] [-h --help] [-b --background COLOR] [COLOR]

Description

Change the foreground and/or background color of the terminal. COLOR is one of black, red, green, brown, yellow, blue, magenta, purple, cyan, white and normal.

Calling set_color normal will set the terminal color to whatever is the default color of the terminal.

tokenize - tokenize a string

Synopsis

tokenize [STRING...]

Description


Generated on Mon Jul 4 10:49:11 2005 for fish by  doxygen 1.4.3-20050530