There was an error while loading. Please reload this page.
1 parent 2901f93 commit e89d3b4Copy full SHA for e89d3b4
bash shell/code/shift_arg.sh
@@ -0,0 +1,10 @@
1
+#!/bin/bash
2
+#
3
+# Showing the use of shift
4
+
5
+echo "The arguments provided are $*"
6
+echo "The value of \$1 is $1"
7
+shift
8
+echo "The new value of \$1 is $1"
9
10
+exit
0 commit comments