in reply to Removing Non-Ascii chars from text file
You can do the job with a perl one-liner:
perl -i.bk -pe 's/[^[:ascii:]]//g;' file
This will remove all non ascii character from your file copying the original content in file.bk
citromatik
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Removing Non-Ascii chars from text file
by freonpsandoz (Beadle) on Oct 02, 2016 at 05:06 UTC | |
|
Re^2: Removing Non-Ascii chars from text file
by Anonymous Monk on Aug 04, 2015 at 08:22 UTC | |
by choroba (Cardinal) on Aug 04, 2015 at 10:08 UTC | |
|
Re^2: Removing Non-Ascii chars from text file
by Anonymous Monk on Jul 08, 2016 at 12:15 UTC | |
by Corion (Patriarch) on Jul 08, 2016 at 12:20 UTC |