I am trying to run a basic bash program with two outputs, the program works and the tests passes. The thing is I want to reduce the output with only one "echo", when there's an input, show One for "input" and when is empty, One for you. This works but I want the out put in one line.
if (($# == 0))
then
echo "One for you, one for me."
else
echo "One for $1, one for me."
fi
Aucun commentaire:
Enregistrer un commentaire