So rewriting all of this applescript to shell script just to make it easier. I'm at a part where I need to run a loop for the macaddress of the machine and give it a computername based on the mac. An if/elif loop works, but thats a lot of iterations (about 40-50 machines).
Is there anyway to accomplish this via a for loop? I know python has dictionary lists, where I can basically get a value from the index in the list and apply it. So I could list it as {MacaddressA: [ComputernameA], MacaddressB: [ComputernameB]} and just grab w/e name was related to w/e mac address. Havn't been able to think of a viable way to do this though in bash.
XI Wiki

