This website requires JavaScript.
Explore
Help
Sign In
iSharkFly-Docs
/
java-tutorials
Watch
1
Star
0
Fork
0
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
ef45526d7a38deb4604487697ef849639cb1f323
java-tutorials
/
linux-bash
/
command-line-arguments
/
src
/
main
/
bash
/
users-shift-operator.sh
T
11 lines
101 B
Bash
Raw
Normal View
History
Unescape
Escape
BAEL-3469 - How to pass command line arguments to Bash Script (
#8174
)
2019-11-11 21:49:37 +05:30
#!/bin/bash
i
=
1
;
j
=
$#
;
while
[
$i
-le
$j
]
do
echo
"Username -
$i
:
$1
"
;
i
=
$((
i
+
1
))
;
shift
1
;
done
Reference in New Issue
Copy Permalink