If I have a text file with:
MachineName IPAddress
Computer1234 10.0.1.1
Computer1235 10.0.1.2
Computer1236 10.0.1.3
Once I grab the MachineName from the computer, how can I get the corresponding IPAddress from the text above?
The (bash?) script will be run on a Mac, and the text above can be reformatted and/or inserted into the script itself (about 110 computers)...