delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
From: | Prashant TR <tr AT yahoo-inc DOT com> |
To: | djgpp AT delorie DOT com |
Subject: | Re: Gawk (under DJGPP?) |
References: | <3C9E551E DOT EEA1EAC7 AT yahoo DOT com> |
Date: | 25 Mar 2002 09:30:01 +0530 |
In-Reply-To: | CBFalconer's message of "Sun, 24 Mar 2002 23:08:02 GMT" |
Message-ID: | <umz1ye9uwji.fsf@prashant.bangalore.yahoo.com> |
Lines: | 19 |
X-Mailer: | Gnus v5.7/Emacs 20.7 |
Reply-To: | djgpp AT delorie DOT com |
CBFalconer <cbfalconer AT yahoo DOT com> 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 :) Prashant
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |