Created
November 20, 2023 18:05
-
-
Save vdm/0953fa9de17fcef171409e067010c615 to your computer and use it in GitHub Desktop.
terminal-width ruler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ echo $COLUMNS | |
80 | |
$ eval printf '=%.0s' {1..$COLUMNS}; echo | |
================================================================================ | |
$ eval printf -- '-%.0s' {1..$COLUMNS}; echo | |
-------------------------------------------------------------------------------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment