| READ(1) | General Commands Manual | READ(1) |
read - read from standard input with optional seek
read [ -[eor] offset ] [ count ]
Read does a single read of count bytes (default: 8192 bytes) from the standard input and writes the result to the standard output. If the optional offset argument is given, read will first apply sys-seek (2):
In all cases the file offset changes to reflect the result of the seek, and the number of bytes read.
/appl/cmd/read.b
Read prints a diagnostic and returns a non-empty exit status on an I/O error; it quietly returns status if the read returns zero bytes (conventionally, end of file).
cat (1), getline in sh-std (1), stream (1), sys-read (2)