Skip to content

Commit 5a31584

Browse files
Update shift_arg.sh
1 parent e89d3b4 commit 5a31584

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bash shell/code/shift_arg.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
echo "The arguments provided are $*"
66
echo "The value of \$1 is $1"
7+
echo "The entire string is $*"
78
shift
89
echo "The new value of \$1 is $1"
10+
echo "The entire string now is S*"
911

1012
exit

0 commit comments

Comments
 (0)