line

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

TLDR

Read a single line of input
$ line

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.

INSTALL

sudo dnf install mesa-demos
sudo pacman -S mesa-demos
sudo apk add mesa-demos
nix profile install nixpkgs#mesa-demos

CAVEATS

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

SEE ALSO

read(1), head(1)