Append "foo" and "bar" column in file "file" with values dependent on the current table contents
awk 'NR==1 {print $0, "foo", "bar"; next} {print $0, ($2=="x"?"-":"x"), ($4=="x"?"-":"x")}' file | column -t