Skip to content

Instantly share code, notes, and snippets.

@jayers99
Created August 26, 2019 17:40
Show Gist options
  • Save jayers99/e80f2bc1401f22833c66a34b598754e8 to your computer and use it in GitHub Desktop.
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
# 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