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 | |
set -euo pipefail | |
# Assign default values if user does not provide parameters | |
high_default=${1:-80} | |
med_default=${2:-50} | |
printf "Colorize lines for disk usage \n" | |
printf "How to use: ./file_name.sh <high_value> <medium_value>. Order high to med is important for correct coloring. Example command: \n" | |
printf "./colorize_out.sh 90 60 \n\n" |