Hi
I've been trying to understand using bash scripts for the past year. Doing 'for loops' now. What does this syntax mean? 'for arg in list'
What is arg? Most importantly , where did 'you' learn all these arguments or parameters. I go thru a tutorial and all of a sudden they use a term unknown to me.
So I have to go to a Forum to ask. There must be a documentation on all the terms being used in writing bash scripts. No? Any way for now, what is 'arg'?
Thank you...
for loops arguments
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Topics in this forum are automatically closed 6 months after creation.
for loops arguments
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: for loops arguments
http://www.linuxtopia.org/online_books/ ... oops1.html
http://hiox.org/33112-shell-script.php
bash scripting..
http://linuxconfig.org/Bash_scripting_Tutorial
http://linuxreviews.org/beginner/Bash-S ... index.html
--working carefully through any tutorials/guides such as the link above will help, or even a bash howto in 24hrs type book or visual guide book as another choice..
http://hiox.org/33112-shell-script.php
- During each pass through the loop, arg takes on the value of each successive variable in the list.
--what that command line is doing
bash scripting..
http://linuxconfig.org/Bash_scripting_Tutorial
http://linuxreviews.org/beginner/Bash-S ... index.html
--working carefully through any tutorials/guides such as the link above will help, or even a bash howto in 24hrs type book or visual guide book as another choice..
Re: for loops arguments
HEY
Thank you for your rapid response. I thought the 'arg' being used had a special meaning, other than being used as a variable. I've seen it in other notations. Again..Thanks
Thank you for your rapid response. I thought the 'arg' being used had a special meaning, other than being used as a variable. I've seen it in other notations. Again..Thanks
Re: for loops arguments
Mad Props. Great ResourceRETNUH wrote:This is a pretty good Bash tutorial....