Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site loral.UUCP Path: utzoo!watmath!clyde!burl!hou3c!hocda!houxm!ihnp4!zehntel!dual!amd!decwrl!decvax!ittvax!dcdwest!sdcsvax!sdcc6!loral!simard From: simard@loral.UUCP (Ray Simard) Newsgroups: net.unix Subject: Neophyte awk question(s) Message-ID: <487@loral.UUCP> Date: Tue, 18-Sep-84 15:56:26 EDT Article-I.D.: loral.487 Posted: Tue Sep 18 15:56:26 1984 Date-Received: Tue, 25-Sep-84 06:45:05 EDT Organization: Loral Instrumentation, San Diego, CA Lines: 26 [Eh?] I needed an awk process to output an SOH character (binary 1). When I put the following in: {printf"%c",'\001'} awk complained and stubbornly refused. However, the exact same thing in C (given the syntactical difference with parentheses) works fine. I understood that the 'printf' statement in awk was the same as in C. At any rate, I can't seem to get an SOH from awk. Also, I needed to do a lower-to-upper case conversion. All the mathematical tricks failed and I wound up creating a string of the alphabet in upper, then lower case and using 'index' and 'substr' functions to do it. Is there a better way? Many thanks for any ideas. -- [ I am not a stranger, but a friend you haven't met yet ] Ray Simard Loral Instrumentation, San Diego {ucbvax, ittvax!dcdwest}!sdcsvax!sdcc6!loral!simard