csci4061/p2-code/normalize.awk
Michael Zhang 041f660ccd
f
2018-01-29 17:28:37 -06:00

15 lines
303 B
Awk
Executable file

#!/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
}