Skip to content

Commit 7a6b8ef

Browse files
committed
added new files
1 parent 9a8061e commit 7a6b8ef

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

reading_input_from_user.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
echo "What is your name : "
3+
read user_name
4+
echo "what is your age :"
5+
read user_age
6+
echo "welcome, $user_name!"
7+
echo "Your age is $user_age"

variables.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
my_name="alice"
4+
my_age=22
5+
dept="ops"
6+
7+
8+
echo "Hello, my name is $my_name"
9+
echo "iam $my_age years old"
10+
echo "i belong to $dept department"
11+

0 commit comments

Comments
 (0)