Skip to content

Commit 525a1f9

Browse files
author
Ankam Ravi Kumar
authored
Create spacialvariables.sh
1 parent f539796 commit 525a1f9

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

spacialvariables.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
#Purpose: To learn special variables
3+
#Version:1.0
4+
#Website: https://arkit.co.in
5+
#Created Date: Sun May 6 15:23:12 IST 2018
6+
#Modified Date:
7+
#Author: Ankam Ravi Kumar
8+
# START #
9+
echo "'$*' output is $*"
10+
echo "'$#' output is $#"
11+
echo "'$1 & $2' output $1 and $2"
12+
echo "'$@' output of $@"
13+
echo "'$?' output is $?"
14+
echo "'$$' output is $$"
15+
sleep 400 &
16+
echo "'$!' output is $!"
17+
18+
echo "'$0' your current program name is $0"
19+
20+
# END #

0 commit comments

Comments
 (0)