I have a file containing the string
ipAddress=10.78.90.137;10.78.90.149
I\'d like to place these two IP addresses in a bash array. To achie
This one works:
n=(`grep -i ipaddress filename | cut -d"=" -f2 | tr ';' ' '`)
EDIT: (improved, nestable version as per Dennis)
n=($(grep -i ipaddress filename | cut -d"=" -f2 | tr ';' ' '))