csci4061/p2-code/normalize.awk

16 lines
303 B
Awk
Raw Permalink Normal View History

2018-01-29 23:28:37 +00:00
#!/usr/bin/awk -f
# Normalize output of a client transcript so that it has a standard
# format. Splits each line based on the
BEGIN{
# Full binary for control signals but gawk chokes on this
# FS="\x1b\x5b\x32\x4b\x0d"
# Hex code for ASCII Carriage Return
# FS="\x0d"
FS="\r"
}
{
print $NF
}