Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jan 2000 09:31:56 +0530
From:      "SIVARAM N" <sivaramn@wipsys.ge.com>
To:        <keramida@ceid.upatras.gr>
Cc:        <freebsd-newbies@FreeBSD.ORG>
Subject:   Re: awk/gawk question
Message-ID:  <003701bf5cb1$c483c500$8b2fa8c0@wipsys.ge.com>
References:  <006a01bf5c11$6bdb5940$8b2fa8c0@wipsys.ge.com> <20000111182944.B64680@hades.hell.gr>

next in thread | previous in thread | raw e-mail | index | archive | help
>From: Giorgos Keramidas <charon@hades.hell.gr>
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003701bf5cb1$c483c500$8b2fa8c0>