head

Parameters:
Name Type Required Default Hint
path string true file or directory to tail or raw input to process
lines numeric false 15 number of lines to display.

Command Usage

Show the first x lines of a file. Path may be absolute or relative to the current working directory.

head file.txt
Displays the contents of a file to standard CommandBox output according to the number of lines argument.

Use the "lines" param to specify the number of lines to display, or it defaults to 15 lines.
head file.txt 100