jsgibbs1
Jul 20, 2015Nimbostratus
foreach command
I need to parse a data file for a custom string and assign the results to a variable. Each string has a similar prefix and is comma-separated.
Example: custom_string_foo=[get this data w/out the brackets], custom_string_bar=[get this data too],custom_string_again=[keep getting data until no more instances of custom_string]
From what I have read, it seems the foreach command is the best way to handle this, but I can't figure out how to code it. I would appreciate any assistance.
Thx