LinuxCommandLibrary

line

reads a single line from standard input and writes it to standard output

TLDR

Read a single line of input

$ line
copy

SYNOPSIS

line

DESCRIPTION

line reads a single line from standard input and writes it to standard output. It is a simple utility for reading exactly one line in shell scripts.

CAVEATS

Deprecated on many systems. Consider using `read` shell builtin or `head -n 1` instead for portable scripts.

SEE ALSO

read(1), head(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community