The stupid question is the question not asked | |
PerlMonks |
Re: How to find Unicode: 0x13 in Fileby choroba (Cardinal) |
on Nov 18, 2016 at 15:03 UTC ( [id://1176096]=note: print w/replies, xml ) | Need Help?? |
You haven't shown the "grep commands and perl one liners", so it's hard to tell what's wrong with them. The following finds the character \x13 in a file in bash:
Same in Perl:
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).
In Section
Seekers of Perl Wisdom
|
|