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 $VARIABLEcount 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.
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 [OPTIONS] FILES...FILES is a list of files to analyse-t, --input-file-data the specified files type should be determined both by their filename and by their contents (Default)-f, --input-filename the specified files type should be determined by their filename-i, --input-mime the arguments are not files but mimetypes-m, --output-mime the output will be the mimetype of each file (Default)-f, --output-description the output will be the description of each mimetype-a, --output-action the output will be the default action of each mimetype-l, --launch launch the default action for the specified file(s)-h, --help Display a help message and exit-v, --version Display version number and exitset_color [-v --version] [-h --help] [-b --background COLOR] [COLOR]
-b, --background Set the background color-h, --help Display help message and exit-v, --version Display version and exit
Calling set_color normal will set the terminal color to whatever is the default color of the terminal.
tokenize [STRING...]-e, --with-empty allow empty tokens-n, --no-empty ignore empty tokens (Default)-d DELIMITER, --delimiter=DELIMITER is the list of characters that will be used as delimiters. If unspecified, the IFS environment variable will be used as the delimiter string,-h, --help Display help message and exit-v, --version Display version and exit
1.4.3-20050530