ok the data is fictional to keep it simple..
Here's the problem
UnixCommand followed by some piping & filtering
outputs: 2 arrays like this
10 0-9{3}
4 0-9{3}
7 0-9{3}
noteworthy thing is first column items are random, and may repeat with no particular pattern.
Intended Solution:
Run a loop with nested if statement, that'll check if left column item{(10) , (4) , (7)} -ge 50 then perform some action on right column item{0-9}
I understand I can get both columns in 2 arrays and work on them, but how to accomplish that 0 item in first array runs side by side to the 0 item in array2? Or is there any other easier way to accomplish it?
Aucun commentaire:
Enregistrer un commentaire