Created 11-21-2016 10:57 AM
You might do something like this:
# alternatives --list | awk '{print $1}' | xargs -n1 alternatives --display |grep "^/" > all_alternatives.txt
# awk -F ' ' -v NCOLS=4 'NF!=NCOLS{printf "Wrong number of columns at line %d\n", NR}' all_alternatives.txt
The above will list out all the alternatives display information and write that to a file
Then, it will check to see if there are any lines with more or less than 4 columns and print out the line number.
You could then use that line number to reference the all_alternatives.txt file line.
That should show us which alternative is tripping up the agent.