Attempting to print out a list of values from 2 different variables that are aligned correctly.
foreach finalList ($correctList $wrongList) printf '%20s%s\n' $finalList end
This prints them out an they are aligned, but it’s one after another. How would I have it go through each item in each list and THEN go to a new line?
I want them to eventually appear like this:
Correct Incorrect Good1 Bad1 Good2 Bad2 Good3 Bad3
Good comes from correctList Bad comes from wrongList
Getting rid of \n makes it Like this:
Good1 Bad1 Good2 Bad2
I just want 2 columns.
You can iterate over both lists at the same time like this: