source:
trunk/third/lprng/athena/check_unprintable.pl
@
13328
Revision 13328, 200 bytes checked in by danw, 25 years ago (diff) | |
---|---|
|
Line | |
---|---|
1 | #!/usr/athena/bin/perl |
2 | |
3 | $_ = <>; |
4 | |
5 | if (/^%PDF-/) { print "PDF\n"; } |
6 | elsif (/^<MakerFile /) { print "FrameMaker\n"; } |
7 | elsif (/[\x80-\xFF]/) { print "binary\n"; } |
8 | else { print "text\n"; } |
9 | |
10 | while (<>) {} |
Note: See TracBrowser
for help on using the repository browser.