X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Message-ID: <3C9E551E.EEA1EAC7@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: Gawk (under DJGPP?) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 20 Date: Sun, 24 Mar 2002 23:08:02 GMT NNTP-Posting-Host: 12.90.170.164 X-Complaints-To: abuse AT worldnet DOT att DOT net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1017011282 12.90.170.164 (Sun, 24 Mar 2002 23:08:02 GMT) NNTP-Posting-Date: Sun, 24 Mar 2002 23:08:02 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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. -- 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)