I'm not sure if this is relevant, but using file rather than head would give you a more sensible message to match against.
In reply to Re: Regular expression to match binary data amoun text data
by RichardK
in thread Regular expression to match binary data amoun text data
by hisyc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |