Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 11592 invoked from network); 8 Apr 2003 15:07:22 -0000 Received: from junior.lgc.com (134.132.72.99) by daedalus.apache.org with SMTP; 8 Apr 2003 15:07:22 -0000 Received: from lgchvw01.lgc.com (lgchvw01.lgc.com [134.132.93.107]) by junior.lgc.com (8.11.7/8.11.3) with SMTP id h38F6I505345 for ; Tue, 8 Apr 2003 10:06:18 -0500 (CDT) Received: from 134.132.93.152 by lgchvw01.lgc.com (InterScan E-Mail VirusWall NT); Tue, 08 Apr 2003 10:05:42 -0500 Received: by lgchexchbh.ad.lgc.com with Internet Mail Service (5.5.2653.19) id <2JRPCXXM>; Tue, 8 Apr 2003 10:05:41 -0500 Message-ID: From: Dominique Devienne To: "'Ant Users List'" Subject: RE: How to read a file without the first n lines Date: Tue, 8 Apr 2003 10:05:34 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Then as I said maybe you should make them to work in a useful manner = ;-) I'd say your use case requires , which gives you = the tail of the file, minus the top 2 lines. = would of course yield the entire file minus the bottom 2 lines. Seems like a = natural extension of these filters, consistent with their Unix brethren. --DD -----Original Message----- From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]=20 Sent: Tuesday, April 08, 2003 9:59 AM To: user@ant.apache.org Subject: AW: How to read a file without the first n lines They work ... but not like hoped :-( with negative lines-attributes gives nothing and with negative lines-attributes gives the whole file. Jan Mat=E8rne > -----Urspr=FCngliche Nachricht----- > Von: Dominique Devienne [mailto:DDevienne@lgc.com] > Gesendet am: Dienstag, 8. April 2003 16:29 > An: 'Ant Users List' > Betreff: RE: How to read a file without the first n lines >=20 > If I remember correctly, the Unix head/tail also supported=20 > negative line > numbers, which allow to do what you want!?!? Either / do > already, or they should be made to ;-) --DD >=20 > -----Original Message----- > From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]=20 > Sent: Tuesday, April 08, 2003 9:24 AM > To: user@ant.apache.org > Subject: How to read a file without the first n lines >=20 > I have problem: >=20 > I want to compare two files. I know that the first two lines=20 > differ (they > contain a timestamp), but that can be ignored. > So the content of lines three to n is interesting. >=20 > With I can read the first two lines and with > I can read the last 'n' lines. > But I don=B4t know how many lines there are, so I can=B4t tell=20 > the number > of lines. >=20 > Any suggestions (besides writing my own Filter :-) >=20 >=20 >=20 > Thanks > Jan Mat=E8rne >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org >=20