#! /bin/bash vehicle=$1 case $vehicle in "car" ) echo Rent of $vehicle is 100;; "bus" ) echo Rent of $vehicle is 200;; "jet" ) echo Rent of $vehicle is 500;; "jeep" ) echo Rent of $vehicle is 150;; * ) echo Unknown vehicle;; esac
Scripting is sorcery
#! /bin/bash vehicle=$1 case $vehicle in "car" ) echo Rent of $vehicle is 100;; "bus" ) echo Rent of $vehicle is 200;; "jet" ) echo Rent of $vehicle is 500;; "jeep" ) echo Rent of $vehicle is 150;; * ) echo Unknown vehicle;; esac