We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a042f49 commit 90f9658Copy full SHA for 90f9658
2 files changed
basic_of_scripting.sh
@@ -0,0 +1,23 @@
1
+#!/bin/bash
2
+
3
+# There are two type of comments
4
5
+<< comments
6
+This is multi
7
+level
8
+comment
9
+comments
10
11
+# This is a variable declaration
12
+name="Sanjay Rai"
13
14
+echo "Name is $name, date is $(date)"
15
16
+# Take input from user
17
18
+echo "Enter your name:"
19
20
+read username
21
22
+echo "Username is : $username"
23
basic_of_scripting1.sh
@@ -0,0 +1,9 @@
+read -p "Enter your username:" username
+echo "Username is: $username"
+sudo useradd -m $username
+echo "New user added"
0 commit comments