LinuxCommandLibrary

hr

prints horizontal rules in the terminal

TLDR

Print horizontal rule

$ hr
copy
Print with specific character
$ hr [=]
copy
Print double line
$ hr [#] [-]
copy
Custom width
$ hr -w [40] [*]
copy

SYNOPSIS

hr [options] [characters]

DESCRIPTION

hr prints horizontal rules in the terminal. It outputs a line of characters spanning the terminal width.
The tool is useful for visual separation in scripts and terminal output. Multiple character patterns can create different line styles.

PARAMETERS

CHARACTERS

Character(s) to use for rule.
-w WIDTH
Rule width.
-c CHAR
Character to use.
--help
Display help information.

CAVEATS

Width based on terminal size. Simple utility. Multiple implementations exist.

HISTORY

hr is a simple terminal utility for creating horizontal dividers in terminal output.

SEE ALSO

echo(1), printf(1), tput(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community