Re: reading the end of file

2009-07-24 Thread Lennart Sorensen
On Fri, Jul 24, 2009 at 12:37:51AM -0500, Ron Johnson wrote: On 2009-07-23 01:45, Ekkard Gerlach wrote: * Francesco Pietra schrieb: Hi: Is any command faster than cat filename to reach and print on screen the last page of the file? what kind of file? tail -n 10 filename makes output

Re: reading the end of file

2009-07-23 Thread Ekkard Gerlach
* Francesco Pietra schrieb: Hi: Is any command faster than cat filename to reach and print on screen the last page of the file? what kind of file? tail -n 10 filename makes output of last 10 lines of a file. But if there are no linefeeds/ carriage return in the files, the it makes

Re: reading the end of file

2009-07-22 Thread Eduardo M KALINOWSKI
Francesco Pietra wrote: Hi: Is any command faster than cat filename to reach and print on screen the last page of the file? Define 'page'. Anyway, the command you want is 'tail'. By default it prints the last 10 lines, but this can be changed, see the man page. The question (i hope)