#!/usr/local/bin/perl -w # # reprint each line removing silly mac chars # $nonums=1; while(<>) { s/[^\40-\176]*/\n/g ; s/\n\n/NEWLINE/g; s/\n//g; s/NEWLINE/\n/g; print $_ ; } # usage # reprint.p dict2000 > tmp