From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,f1d797a60a92e799 X-Google-Attributes: gidf678f,public From: Nikola Milutinovic Subject: Re: Awk Date: 1998/11/22 Message-ID: <3658058E.5C04AF8C@EUnet.yu>#1/1 X-Deja-AN: 414469537 Content-Transfer-Encoding: 7bit References: <733tj8$meo$1@hdxf08.telecom.ptt.nl> <3655C507.A24DEC49@just.post.to.news> <3655CAFF.CF917D4B@just.post.to.news> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@EUnet.yu X-Trace: SOLAIR2.EUnet.yu 911738164 14538 194.247.199.1 (22 Nov 1998 12:36:04 GMT) Organization: Me organized? Not here! Mime-Version: 1.0 NNTP-Posting-Date: 22 Nov 1998 12:36:04 GMT Newsgroups: comp.unix.osf.misc Doug Chapman USG wrote: > > echo thisisastring | awk '{printf ("%.4s\n",$1)}' echo thisisastring | awk '{print substr ($1, 1, 4)}'