forked from tushargoyal02/bashScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecho.sh
More file actions
33 lines (16 loc) · 638 Bytes
/
echo.sh
File metadata and controls
33 lines (16 loc) · 638 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# IN THIS ONE WE WILL WORK WITH ECHO AND COMMENT
# Echo is used to print whatever you have typed here
# It will automatically let you with new line
echo "hello this is the first program"
echo "hello to second line"
# To get rid of new line use "-n": It will tell to forgot about new line
echo -n "1st line "
echo "Second line"
# To allow special character like "\n" in echo [USE -e ]
echo "\nSpecial character"
echo -e "\n special character series"
# Like below one we will do multi line comment
: 'Multi-line comment'
# To run it in the termial type
# bash file.sh [File extension should be sh]