in reply to Re: How to find Unicode: 0x13 in File
in thread How to find Unicode: 0x13 in File

I was using the following which did not work :

perl -ne 'print "$ARGV:$.\n" if /[^[:ascii:]]/;' $filename grep -e "[\x{00FF}-\x{FFFF}]" $filename

The Command you sent worked perfectly

Thanks!

Replies are listed 'Best First'.
Re^3: How to find Unicode: 0x13 in File
by choroba (Cardinal) on Nov 18, 2016 at 16:14 UTC
    > did not work

    And here's why:

    • [:ascii:] matches character in the range 0-127.
    • 19 doesn't belong between 255 and 65535.

    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,