I know how to iterate over lines of text when the text file has contents as below:
abc pqr xyz
However, what if the contents of my text fil
If the delimiter is a space then you can do:
#!/bin/bash ALLVALUES=() while read line do ALLVALUES+=( $line ) done < "/path/to/your/file"
So after, you can just reference an element by ${ALLVALUES[0]} or ${ALLVALUES[1]} etc
${ALLVALUES[0]}
${ALLVALUES[1]}