logout [n]
Exit a login shell, returning a status of n to the shell’s parent. mapfile mapfile [-n count] [-O origin] [-s count] [-t] [-u fd]
[-C callback] [-c quantum] [array]
Read lines from the standard input into the indexed array variable array, or from file descriptor fd if the -u option is supplied. The variable MAPFILE is the default array. Options, if supplied, have the following meanings:
-n
Copy at most count lines. If count is 0, all lines are copied.
-O
Begin assigning to array at index origin. The default index is 0.
-s
Discard the first count lines read.
-t
Remove a trailing newline from each line read.
-u
Read lines from file descriptor fd instead of the standard input.
-C
Evaluate callback each time quantumP lines are read. The -c op- tion specifies quantum.
-c
Specify the number of lines read between each call to callback.
If -C is specified without -c, the default quantum is 5000. When callback is evaluated, it is supplied the index of the next array element to be assigned and the line to be assigned to that element as additional arguments. callback is evaluated after the line is read but before the array element is assigned.
If not supplied with an explicit origin, mapfile will clear array before assigning to it. mapfile returns successfully unless an invalid option or option argument is supplied, array is invalid or unassignable, or array is not an indexed array. printf printf [-v var] format [arguments]
Write the formatted arguments to the standard output under the control of the format. The -v option causes the output to be assigned to the variable var rather than being printed to the standard output.
The format is a character string which contains three types of objects: plain characters, which are simply copied to standard output, character escape se- quences, which are converted and copied to the standard output, and format specifications, each of which causes printing of the next successive argument.
In addition to the standard printf(1) formats, printf interprets the following extensions:
%b
Causes printf to expand backslash escape sequences in the corre- sponding argument, except that ‘\c’ terminates output, backslashes in ‘\’’, ‘\"’, and ‘\?’ are not removed, and octal escapes beginning with ‘\0’ may contain up to four digits.
%q
Causes printf to output the corresponding argument in a format that can be reused as shell input.