$ x12cat -ne 'print if /^GS/' some_file.x12