Aside from the obvious "Read man tail" reply
#!/usr/bin/perl my $lines = shift || 10; my @buf; while( <> ) { push @buf, $_; shift @buf if @buf > $lines } print @buf; exit 0;
In reply to Re: Printing the last few lines of the Error log
by Fletch
in thread Printing the last few lines of the Error log
by Baz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |