in reply to How to find Unicode: 0x13 in File
grep $'\023' file
Same in Perl:
perl -ne 'print if /\023/' file perl -ne 'print if /\x13/' file
Finding "Unicode" in a file is not possible if you don't know the encoding of the file. In the examples above, it works for UTF-8 (and probably other ones, too).
($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,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to find Unicode: 0x13 in File (no magic bullet!)
by Discipulus (Canon) on Nov 18, 2016 at 15:21 UTC | |
|
Re^2: How to find Unicode: 0x13 in File
by james28909 (Deacon) on Nov 18, 2016 at 16:40 UTC | |
by choroba (Cardinal) on Nov 18, 2016 at 16:51 UTC | |
by james28909 (Deacon) on Nov 18, 2016 at 17:24 UTC | |
by AnomalousMonk (Archbishop) on Nov 18, 2016 at 19:57 UTC | |
by james28909 (Deacon) on Nov 19, 2016 at 15:55 UTC | |
| |
|
Re^2: How to find Unicode: 0x13 in File
by dirtdog (Monk) on Nov 18, 2016 at 15:20 UTC | |
by choroba (Cardinal) on Nov 18, 2016 at 16:14 UTC |