# this very readable file serves to swap in a two-column file
# original and translation with out too much loss of data
# (grades and other properties are swapped afterwards)

# only to be used with two columns: original + 1 translation
#===========================================================

# usage: swap-col <infile >outfile

sed -e "s#\(.*\)<o\(.*\)>\(.*\)</o>.*<t\(.*\)>\(.*\)</t>\(.*\)#\1<o\2>\5</o><t\4>\3</t>\6#g"
