Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!ira.uka.de!smurf!flatlin!spirits!rob From: rob@spirits.ka.sub.org (Roland Bless) Newsgroups: comp.sys.amiga.programmer Subject: Re: Unix like 'tail -f' Message-ID: <1891aba9.ARN0368@spirits.ka.sub.org> Date: 23 Jan 91 18:57:29 GMT References: <1991Jan17.034047.18447@eecs.wsu.edu> Followup-To: comp.sys.amiga.programmer Organization: Byteable Software Products, private, Karlsruhe (FRG) Lines: 34 In article <1991Jan17.034047.18447@eecs.wsu.edu>, Roger Nelson - Grad Student writes: > Does there exist a UNIX like tail utility? Yes, I've written one and I'll put it on ab20.larc.nasa.gov for anon-FTP. | usage: tail [+|-[n][lbc]] [file] | All options enclosed in braces are optional! | | + -begin output at line n (display all lines after the first [n-1] lines). | - -display last [n] lines/blocks/chars (DEFAULT) | n -number of lines (DEFAULT is 10), blocks or characters | l -lines (DEFAULT) | b -blocks (512 bytes/chars) | c -chars (characters) | file - filename of the file you want to display (very quick) | | If you want to display the end of a file, type: "tail filename" and "tail" | will display the last ten lines of "filename". This will happen very fast, | because "tail" uses direct filepointer- positioning (if not reading from | standard- input[1] or pipe) and jumps directly to the end of a file. Roland -- R o l a n d B l e s s |UUCP/Internet: rob@spirits.ka.sub.org | Kriegsstrasse 129 |BITNET: UKG5@DKAUNI2.BITNET FAX: +49211623818 | 7500 Karlsruhe - FRG |---------spirits--in--the--material--world---------| voice +49 721 857328 |"They built machines that they can't control" STING| -- R o l a n d B l e s s |UUCP/Internet: rob@spirits.ka.sub.org | Kriegsstrasse 129 |BITNET: UKG5@DKAUNI2.BITNET FAX: +49211623818 | 7500 Karlsruhe - FRG |---------spirits--in--the--material--world---------| voice +49 721 857328 |"They built machines that they can't control" STING|