[Linux-disciples] Deleting all non-ASCII characters

Stephen R Laniel steve at laniels.org
Thu Jul 17 12:38:40 EDT 2008


On Thu, Jul 17, 2008 at 10:43:36AM -0400, Stephen R Laniel wrote:
> I believe that can actually be reduced
> to this one-liner:
> perl -n -e 's#[^[:ascii:]]##g' /path/to/file

For the historical record: I meant -p
rather than -n.

-- 
Stephen R. Laniel
steve at laniels.org
Cell: +(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key


More information about the Linux-disciples mailing list