Created
May 27, 2021 20:43
-
-
Save willfolsom/f927436a3c695b874bc7349359c9f745 to your computer and use it in GitHub Desktop.
Using tput and variables in .sh script
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
#!/bin/bash | |
green=`tput setaf 2` | |
bold=`tput bold` | |
reset=`tput sgr0` | |
separator="-----=====-----=====-----=====-----=====-----" | |
echo "🧪 ${green}${bold}Running step one" | |
echo "${separator}${reset}" | |
echo "hello world" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment