All apps/head

head

head

Output the first part of files.

Runs as head|macOS, Linux, Windows

Command form

ai-draft · 2 tasks · 5 fields

Print the first lines or bytes of one or more files.

Opens the form; the finished command lands at your prompt, unrun
otty gui head
Show start of filesExample values, fixed in this page — nothing here reaches a terminal
Basic
Files*
file
Lines
integer
TasksEach one presets the form for one job
First lines
fileslines
First bytes
filesbytes
ParametersOnly these flags are editable in the form
Files
path · positional 0 · repeatable
Lines
Print this many lines instead of 10.
integer
--lines-n
Bytes
Print this many bytes of each file.
integer
--bytes-c
No headers
Never print headers giving file names.
boolean
--quiet--silent-q
Always headers
boolean
--verbose-v
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed head against its version. A form that does not match your version is not offered.