                Example 1

; swap.xom
; omnimark: swap first two fields in a line of tab-delimited fields
;
; Run this program with the command
;
;   omnimark -sb swap.xom swap.txt
;
; where swap.txt is an input file with tab-delimited fields

process
    submit #main-input

find        line-start
            [any-text except "%t"]* => Field1
            "%t"
            [any-text except "%t"]* => Field2
         
    output Field2 || "%t" || Field1
