Quantcast
Channel: How does this function accessing an array work? - Unix & Linux Stack Exchange
Browsing index pages (2 articles)

How does this function accessing an array work?

I want to judge whether a string is in an array. I found the following function on Google. But I can't fully understand the meaning of this function. In this function, match is assigned to the string...

View Article


Answer by nezabudka for How does this function accessing an array work?

From man bash:for name [ [ in [ word ... ] ] ; ] do list ; done...If the "in word" is omitted, the for command executes list oncefor each positional parameter that is setIn reality, it will do the same...

View Article

Browsing index pages (2 articles)


Latest Images