/file/head

当前显示英文原文,切换到「中文」可查看译文。

head

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.


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
nnumNumber 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.