#/bin/sh
# A small script the remove any DOS type control characters,
# remove any "~" characters that are used as padding. The
# field separator is kept as "^".
#
# This all simplies the parsing of the data files.

> $1.mod

tr -s "[\015\032]" "\n" < $1 | tr -d "~" >> $1.mod

mv $1.mod $1
