Strip everything except ascii from Text files

1 mins

A really quick way of doing this is to use strings. However this will strip whitespace characters.

If you need whitespace characters intact you can use this:

cat <file> | tr -d "[:cntrl:]" | iconv -c -f utf-8 -t ascii -


Updated:

Created: