LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

hr

prints horizontal rules in the terminal

TLDR

Print a horizontal rule using the default # character
$ hr
copy
Print a horizontal rule with a specific character
$ hr [=]
copy
Print multiple horizontal rules with different characters
$ hr [#] [-]
copy
Print a horizontal rule with a multi-character pattern
$ hr [-#-]
copy

SYNOPSIS

hr [characters ...]

DESCRIPTION

hr prints horizontal rules spanning the terminal width. Each argument is used as a character or pattern to repeat across one line. If no argument is given, # is used by default. Multiple arguments produce multiple lines, one per argument.The terminal width is determined by `tput cols`, falling back to the COLUMNS environment variable or 80 columns if neither is available.

INSTALL

sudo apk add hr
copy
brew install hr
copy
nix profile install nixpkgs#hr
copy

CAVEATS

Multiple implementations of hr exist with different features. The most common (LuRsT/hr) is a pure Bash script with no flags or options. Other implementations may support additional features like color or width control.

SEE ALSO

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

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid