I have a file with lines in the following format:
10.15.0.1; 10.15.1.27; 10.15.5.50; 22.214.171.124, 126.96.36.199
There is always going to be 3 IP addresses separated by semi-colons, then one or more IP addresses separated by commas.
I need to process the file and run several commands using the first three IP addresses, then run a several commands on each of the comma-separated IPs.
I tried using IFS and nested for loops but didn't know how to pull off the second loop.