home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.misc:3501 comp.unix.programmer:4533
- Path: sparky!uunet!mcsun!uknet!liv!qq11
- From: QQ11@LIVERPOOL.AC.UK (Alan Thew)
- Newsgroups: comp.unix.misc,comp.unix.programmer
- Subject: nawk/gawk and 8-bit ASCII
- Message-ID: <92248.104007QQ11@LIVERPOOL.AC.UK>
- Date: 4 Sep 92 09:40:07 GMT
- Organization: University of Liverpool
- Lines: 20
-
- I have a program which needs to test for an 8-bit ASCII value. Neither
- nawk/gawk appear to support it (It's not in the documentation and it doesn't
- work :-)). I have a simple C program which can be used but to interact
- with the C program is problematic.
-
- I can only see one way and I'm hoping that the awk experts out there can
- show a more efficient method.
-
- My method:
-
- (variable var8 has 8-bit ASCII in, check8 is the C program, check_out
- will have the signed decimal of the first char(s))
-
- print var8 > temp_file
- "check8 < temp_file" | getline check_out
-
- There must be a better way....
-
- Thanks.
- Alan
-