Skip to content
Advertisement

Tag: ifs

Difference between “${param[0]}” and ${1} in bash

I’m looking at some old scripts and I found some parameter assignment that I have not seen before. A while loop reads from a text file and passes the values to a function. The items in the text file look like this: the first stage of the function then looks like this: I have not seen this sort of assignment

Advertisement