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 Charles De Gaulle's funeral
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to