Skip to content

Commit 6d753aa

Browse files
author
shubham_24214
committed
added read_input_3times.sh
1 parent 2dcd073 commit 6d753aa

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

read_input_3times.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#! /bin/bash
2+
X=1
3+
while [ $X -lt 3 ]
4+
do
5+
echo "Please type something: "
6+
read input_string
7+
echo "You typed: $input_string"
8+
((X=X+1))
9+
done
10+

0 commit comments

Comments
 (0)