🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.perl.misc
Article #250

Re: reverse file reading

#250
From: Roman Czyborra
Date: Thu, 05 Oct 1995 00:00
9 lines
1109 bytes
> is there an easy way to read a file in reverse order

It's not as easy as starting from the beginning, but you can use the
seek() function to start reading from the end of the file.

http://www.cs.tu-berlin.de/~czyborra/~/bin/grev is a sample script to
grep from the end in a logfile several megabytes large.

Please fill in your full address in your ~/.netscape-preferences
Technical Details
Message-ID: <czyborra95100518299846@akne.cs.tu-berlin.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <44spkk$ipv@rs3.rz.uni-hohenheim.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1043e7,54d2c575875f4961
X-Google-Attributes: gid1043e7,public
X-Google-Thread: 1133f4,54d2c575875f4961
X-Google-Attributes: gid1133f4,public
X-Google-Thread: fa0ae,54d2c575875f4961
X-Google-Attributes: gidfa0ae,public
From: Roman Czyborra <czyborra@cs.tu-berlin.de>
Subject: Re: reverse file reading
Date: 1995/10/05
Message-ID: <czyborra95100518299846@akne.cs.tu-berlin.de>
X-Deja-AN: 117093338
references: <44spkk$ipv@rs3.rz.uni-hohenheim.de>
to: pvr@goya.igd.fhg.de
content-type: text/plain; charset=US-ASCII
organization: Technical University of Berlin, Germany
mime-version: 1.0
newsgroups: comp.lang.perl.misc,fj.lang.perl,de.comp.lang.perl