[Gllug] Find non-7-bit characters in files
Tethys
tet at createservices.com
Thu Jun 16 17:44:33 UTC 2005
Rich Walker writes:
>grep -E [`echo -ne "\200"`-`echo -ne "\377"`] *
Right idea, wrong range. That excludes valid UTF-8 characters. I assume
the original request was to be able to find MS moronic HTML[1]. Thus:
egrep [$(echo -ne '\200-\240')]
Tet
[1] http://www.fourmilab.ch/webtools/demoroniser/
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list