2022-04-22 Shell_script_4
IF #!/bin/bash read -p "enter income amount" Income read -p "enter expenses aount" Expense let Net=$Income-$Expense if [ "$Net" -eq "0" ] then echo "Income and expences are equal" elif [ "$Net" -gt "0" ] then echo "profit : " $Net else echo "Loss : " $Net fi CASE case word in pattern1) command-list1 ;; pattern2) command-list2 ;; patternN) command-listN ;; esac checked against word for match may ..
2022.04.22