Skip to content

Commit 5093a4b

Browse files
author
Ankam Ravi Kumar
authored
Create countargs.sh
Counting given positional parameters.
1 parent e6fa259 commit 5093a4b

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

countargs.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
#Purpose: Counting given postional parameters.
3+
#Version:1.0
4+
#Created Date: Mon May 7 21:55:05 IST 2018
5+
#Modified Date:
6+
#Author: Ankam Ravi Kumar
7+
# START #
8+
#echo "Your current given parameters are $#"
9+
if [ $# -lt 1 ];then
10+
echo "Program Usage is './scriptname.sh' options"
11+
else
12+
echo "Program executed successfully"
13+
fi
14+
15+
# END #

0 commit comments

Comments
 (0)