I have file HOMO.txt with this content:
1506 -4.6242 2.00000
I am using below commands:
$ mapfile -t myArray < HOMO.txt
$ echo ${myArray[0]}
1506 -4.6242 2.00000
$ echo ${myArray[1]}
The last command is returning a blank line. What I want is, to assign the middle value to a variable. Can anybody please suggest a fix.