Home » » Shell Scripting Tutorial For Beginners 12 - The Illustration Statement

Shell Scripting Tutorial For Beginners 12 - The Illustration Statement

#! /bin/bash  vehicle=$1  case $vehicle in     "car" )         echo "Rent of $vehicle is 100 dollar" ;;     "van" )         echo "Rent of $vehicle is lxxx dollar" ;;     "bicycle" )         echo "Rent of $vehicle is v dollar" ;;     "truck" )         echo "Rent of $vehicle is 150 dollar" ;;     * )         echo "Unknown vehicle" ;; esac 

0 comments:

Post a Comment

Search

Blog Archive