Re: non ascii file

2015-11-24 Thread Pete Travis
On Nov 24, 2015 1:43 PM, "Patrick Dupre" <pdu...@gmx.com> wrote: > > Hello, > > I am an non ascii file (ISO-8859 text executable), > how can I get the lines containing non ascii characters? > > Thank. > > =

Re: non ascii file

2015-11-24 Thread Dave Mitchell
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 Franc

non ascii file

2015-11-24 Thread Patrick Dupre
Hello, I am an non ascii file (ISO-8859 text executable), how can I get the lines containing non ascii characters? Thank. === Patrick DUPRÉ | | email: pdu...@gmx.com Laboratoire de Physico

Re: non ascii file

2015-11-24 Thread Gordon Messmer
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]/'