From a3b7ebdfdef3f8d7040107b9679e6d8487e17f7d Mon Sep 17 00:00:00 2001 From: Satish Gaurav <36672530+satishgaurav@users.noreply.github.com> Date: Fri, 18 Dec 2020 08:24:16 +0530 Subject: [PATCH] fixing typos -c : Suppress trailing newline -e : for interpreting the user given input --- casestatement.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/casestatement.sh b/casestatement.sh index 149c6f2..e68b229 100644 --- a/casestatement.sh +++ b/casestatement.sh @@ -6,9 +6,9 @@ #Modified Date: #Author: Ankam Ravi Kumar # START # -echo -c "Enter a number: \c" +echo -e "Enter a number: \c" read -r a -echo -c "Enter b number: \c" +echo -e "Enter b number: \c" read -r b echo "1. Sum of values" @@ -16,7 +16,7 @@ echo "2. Substraction" echo "3. Multiplication" echo "4. Division" echo "5. Modulo division" -echo -c "Enter Your Choice from above menu: \c" +echo -e "Enter Your Choice from above menu: \c" read -r ch case $ch in 1) echo "Sum of $a + $b = "`expr $a + $b`;;