From owner-freebsd-newbies Tue Jan 11 19:40:50 2000 Delivered-To: freebsd-newbies@freebsd.org Received: from unknown-230-100.pilot.net (unknown-230-100.pilot.net [206.98.230.100]) by hub.freebsd.org (Postfix) with ESMTP id 9FC2015090 for ; Tue, 11 Jan 2000 19:40:46 -0800 (PST) (envelope-from sivaramn@wipsys.ge.com) Received: from unknown-239-164.pilot.net (unknown-239-164.pilot.net [206.189.239.164]) by unknown-230-100.pilot.net with ESMTP id WAA18424 for ; Tue, 11 Jan 2000 22:40:41 -0500 (EST) Received: from gemail.wipsys.ge.com (localhost [127.0.0.1]) by unknown-239-164.pilot.net with ESMTP id WAA18604 for ; Tue, 11 Jan 2000 22:40:38 -0500 (EST) Received: from Sivaram ([192.168.47.139]) by gemail.wipsys.ge.com (Netscape Messaging Server 3.6) with SMTP id AAA34D4; Wed, 12 Jan 2000 09:15:42 +0530 Message-ID: <003701bf5cb1$c483c500$8b2fa8c0@wipsys.ge.com> Reply-To: "Sivaram Neelakantan" From: "SIVARAM N" To: Cc: References: <006a01bf5c11$6bdb5940$8b2fa8c0@wipsys.ge.com> <20000111182944.B64680@hades.hell.gr> Subject: Re: awk/gawk question Date: Wed, 12 Jan 2000 09:31:56 +0530 Organization: wipro MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >From: Giorgos Keramidas > If you want to use DESC as the separator of records, you can always > change FS in awk to achieve it. No, that's not what i wanted. The word appears infrequently in the text & that's why i didn't use it the first place. i checked the string functions & found the match() operator which sets RSTART & RLENGTH of the matched string. This along with length($0) helped me to get all text excluding the matched portion. Thanks anyway Regards Sivaram To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message