I want to make my Bash scripts more elegant for the end user. How do I hide the output when Bash is executing commands?
For example, when Bash executes
You should not use bash in this case to get rid of the output. Yum does have an option -q which suppresses the output.
-q
You'll most certainly also want to use -y
-y
echo "Installing nano..." yum -y -q install nano
To see all the options for yum, use man yum.
man yum