Not always
$ perl -le '{local$/; $_=<>;}print /^[\x00-\xA5]/ ? "binary" : "text" +' \ /mnt/win/WINDOWS/system32/command.com text
In reply to Re^2: Detecting 'binary' in a variable
by dbwiz
in thread Detecting 'binary' in a variable
by kirbyk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |