Skip to main content
Version: 7.25

head


file/head​

Type: Command

Prints the first lines of a file's contents. With as-value, the lines are returned as an array of strings in lines. See the Files guide.

ArgumentTypeDescription
n ( unset )numNumber of lines to output from the beginning of the file. Range: 1..1000. Default: 10.
numberedswitchShow line numbers in front of each line.
Read-only ArgumentTypeDescription
linesobject { line: string }The output lines returned as an array of strings.