Article View: gnu.utils.bug
Article #347gawk questions
From: Marty
Date: Tue, 08 Aug 1989 22:01
Date: Tue, 08 Aug 1989 22:01
33 lines
1170 bytes
1170 bytes
I'm learning how to use awk. I started to use GAWK 2.10 on my sun386i
since the documentation seemed substantially complete then the Unix
version.
1) I can't seem to get FILENAME to work. Is it available in a begin block?
I played around with it but haven't seen it do anything useful yet.
I ended up doing this:
BEGIN {
printf "; File %s converted ", ARGV[ARGC-1]
system("date");
}
BTW -- I started by using $ARGV[$ARGC-1] -- this dumped core.
2) I want to do some substitions of the form
0xnnnnn to 0nnnnH
I'm not sure I see how to do it. Any good recommendations?
(I'm converted assembler syntax from one assembler to another so I'd want
to be able do do something
and di,*0x000F
into
and di,000FH
)
marty
ARPA: leisner.henr@xerox.com
GV: leisner.henr
NS: leisner:wbst139:xerox
UUCP: hplabs!arisia!leisner
Technical Details
Message-ID:
<890808-150138-2345@Xerox>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!iuvax!purdue!tut.cis.ohio-state.edu!XEROX.COM!Leisner.HenrShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!iuvax!purdue!tut.cis.ohio-state.edu!XEROX.COM!Leisner.Henr From: Leisner.Henr@XEROX.COM (Marty) Newsgroups: gnu.utils.bug Subject: gawk questions Message-ID: <890808-150138-2345@Xerox> Date: 8 Aug 89 22:01:31 GMT Distribution: gnu Organization: GNUs Not Usenet Lines: 33