home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!news.ans.net!cmcl2!adm!news
- From: karron@karron.med.nyu.edu (Dan Karron (karron@nyu.edu))
- Newsgroups: comp.sys.sgi
- Subject: Nawk Balks again
- Message-ID: <34092@adm.brl.mil>
- Date: 15 Nov 92 23:50:56 GMT
- Sender: news@adm.brl.mil
- Lines: 21
-
-
- More nawk bugs. Try this. Note that the
- string should contain the string value of "001", not "".
-
- Try this at home and see:
-
- prog='
- BEGIN {
- i=1
- printf("%03d\n",i);
- sprintf(string,"%03d",i);
- print "string=",string
- }
- '
- nawk "$prog"
- | karron@nyu.edu (e-mail alias ) Dan Karron, Research Associate |
- | Phone: 212 263 5210 Fax: 212 263 7190 New York University Medical Center |
- | 560 First Avenue Digital Pager <1> 212 397 9330 |
- | New York, New York 10016 <2> 10896 <3> <your-number-here> |
- ``Too busy doing to write about it, too busy writing to do anything about it.''
-
-