Date: Thu, 3 Sep 1998 02:14:49 +0100 From: Ben Smithurst <ben@scientia.demon.co.uk> To: Roman Katsnelson <romank@graphnet.com>, "q's" <freebsd-questions@FreeBSD.ORG> Subject: Re: grep question Message-ID: <19980903021449.A12182@scientia.demon.co.uk> In-Reply-To: <35EDA68A.F931FA64@graphnet.com> References: <35EDA68A.F931FA64@graphnet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Roman Katsnelson wrote: > I have a flat data file with fields that are 16 lines long, of which the > third line is always unique. I need to be able to automate deleting > these records. Can't you just do { head -2 database.file tail -13 database.file } > database.tmp ? If you _always_ want to delete the third line, and they _always_ have 16 lines, that should work. Or have I misunderstood what you want to do? -- Ben Smithurst : ben@scientia.demon.co.uk : http://www.scientia.demon.co.uk/ PGP: 0x99392F7D - 3D 89 87 42 CE CA 93 4C 68 32 0E D5 36 05 3D 16 http://www.scientia.demon.co.uk/ben/pgp-key.html (or use keyservers) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980903021449.A12182>