X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Message-ID: <3C9EEEB2.78CEFE78@yahoo.com> From: CBFalconer Organization: Ched Research X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: Gawk (under DJGPP?) References: <3C9E551E DOT EEA1EAC7 AT yahoo DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 29 Date: Mon, 25 Mar 2002 10:02:10 GMT NNTP-Posting-Host: 12.90.167.81 X-Complaints-To: abuse AT worldnet DOT att DOT net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1017050530 12.90.167.81 (Mon, 25 Mar 2002 10:02:10 GMT) NNTP-Posting-Date: Mon, 25 Mar 2002 10:02:10 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Prashant TR wrote: > CBFalconer writes: > > > I just tried this out on a file that is tab delimited. The > > following command: > > > > c:\hh45\>gawk 'BEGIN { RS = "\t" } ; { print $1 }' < hh45.txt > > > > was supposed to pick out the first field of each line (which > > contains blanks) and dump it. It dumps other fields as individual > > lines. > > > > This is my first attempt at gawking, and I seem to have followed > > the documentation. What am I missing? Yes, the tabs are in the > > file - I put them there and checked that the editor had not > > expanded them. > > Replace RS with FS and try again :) Thanks, that does it. Right under my nose all the time. Eighteen wet noodle lashes. -- Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT XXXXworldnet DOT att DOT net) Available for consulting/temporary embedded and systems. (Remove "XXXX" from reply address. yahoo works unmodified) mailto:uce AT ftc DOT gov (for spambots to harvest)