/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.
| Argument | Type | Description |
|---|---|---|
n | num | Number of lines to output from the beginning of the file. Range: 1..1000. Default: 10. |
numbered | switch | Show line numbers in front of each line. |
| Read-only Argument | Type | Description |
|---|---|---|
lines | object { line: string } | The output lines returned as an array of strings. |