Pass test result rather than omit points with gmtselect

Hi,

Sorry if I am missing something, or cannot think of an easy workaround: Is there a way to have gmtselect pass all points but add a 1/0 column with the test result?

I realize that UNIX allows to do things like “comm” to find missing lines and can cobble together that way, but I wonder if there’s something more streamlined.

Thanks!

T

Probably simpler to use gmt math to extend your table, e.g.

cat a
1 2 3
2 4 6

gmt math -N5/0 a -C3 1 ADD =
1 2 3 1 0
2 4 6 1 0