Created
August 26, 2019 17:40
-
-
Save jayers99/e80f2bc1401f22833c66a34b598754e8 to your computer and use it in GitHub Desktop.
print a line all the way across the screen to separate sections of output
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
# tear will print a line across the screen to sperate the output | |
function tear { | |
printf -vl "%${COLUMNS:-`tput cols 2>&-||echo 80`}s\n" && echo $'\e[1;33m'${l// /-}$'\e[0m'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment