I am working on shell script where i want to store O/P of the command in array.
I have a file containing rows & columns from where i want to extract 3rd column & store all values in a array. if suppose i have below in my file info.txt
abc xyz pqr akl
mnt var man lak
qer tag sam bob
I want to store pqr, man and sam in array lets call name[1], name[2], name [3]
Can someone please help me with this.