mirror of
https://github.com/techarkit/shell-scripting-tutorial.git
synced 2025-07-25 01:28:51 +00:00
Update countargs.sh
This commit is contained in:
16
countargs.sh
16
countargs.sh
@ -1,15 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#Purpose: Counting given postional parameters.
|
##################################################
|
||||||
#Version:1.0
|
# Purpose: Counting given postional parameters.
|
||||||
#Created Date: Mon May 7 21:55:05 IST 2018
|
# Version:1.0
|
||||||
#Modified Date:
|
# Created Date: Mon May 7 21:55:05 IST 2018
|
||||||
#Author: Ankam Ravi Kumar
|
# Modified Date:
|
||||||
|
# Author: Ankam Ravi Kumar
|
||||||
|
##################################################
|
||||||
|
|
||||||
# START #
|
# START #
|
||||||
#echo "Your current given parameters are $#"
|
echo "Your current given parameters are $#"
|
||||||
if [ $# -lt 1 ];then
|
if [ $# -lt 1 ];then
|
||||||
echo "Program Usage is './scriptname.sh' options"
|
echo "Program Usage is './scriptname.sh' options"
|
||||||
else
|
else
|
||||||
echo "Program executed successfully"
|
echo "Program executed successfully"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# END #
|
# END #
|
||||||
|
Reference in New Issue
Block a user