Skip to content

Commit bd88401

Browse files
author
Ankam Ravi Kumar
authored
Create if-statement
if statement example
1 parent 168e699 commit bd88401

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

if-statement

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
#Purpose: If statement example
3+
#Version:1.0
4+
#Created Date: Sat May 12 23:41:50 IST 2018
5+
#Modified Date:
6+
#Author: Ankam Ravi Kumar
7+
# START #
8+
echo -e "Please provide Value below ten: \c"
9+
read -r value
10+
11+
if [ $value -le 10 ]
12+
then
13+
echo "You provided value is $value"
14+
touch /tmp/test{1..100}.txt
15+
echo "Script completed successfully"
16+
fi
17+
18+
# END #

0 commit comments

Comments
 (0)