/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
打印文件内容的前几行。使用 as-value 时,这些行会以字符串数组形式返回到 lines 中。请参阅 文件 指南。
| 参数 | 类型 | 描述 |
|---|---|---|
n | num | 从文件开头输出的行数。范围:1..1000。默认值:10。 |
numbered | switch | 在每行前面显示行号。 |
| 只读参数 | 类型 | 描述 |
|---|---|---|
lines | object { line: string } | 以字符串数组形式返回的输出行。 |