On 11/24/2015 12:42 PM, Dave Mitchell wrote:
how can I get the lines containing non ascii characters?
perl -ne'print if /[^\x00-\x7f]/' infile > outfile
...and if you want to look for ascii control characters (and delete) in
addition to non-ascii, maybe:
perl -ne 'print if /[^\x20-\x7e]/' i
On Tue, Nov 24, 2015 at 08:43:24PM +0100, Patrick Dupre wrote:
> Hello,
>
> I am an non ascii file (ISO-8859 text executable),
> how can I get the lines containing non ascii characters?
perl -ne'print if /[^\x00-\x7f]/' infile > outfile
--
This is a great day for France!
-- Nixon at Charle
On Nov 24, 2015 1:43 PM, "Patrick Dupre" wrote:
>
> Hello,
>
> I am an non ascii file (ISO-8859 text executable),
> how can I get the lines containing non ascii characters?
>
> Thank.
>
>
===
> Patrick DUPRÉ