This also echoes an error message if there are not exactly three arguments or echoes the arguments themselves if there are three.
echo "No of command line arguments are: $#" echo "*******" if [ $# == 3 ];then echo "Three arguments you entered are" echo $1 $2 $3 else echo "Error while processing arguments" fi
No comments:
Write comments