lilalo

diff taillast.pl @ 61:440d12c122d5

В индекс брать только файлы, начинающиеся с 20
author devi
date Sat Jan 21 19:09:34 2006 +0200 (2006-01-21)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/taillast.pl	Sat Jan 21 19:09:34 2006 +0200
     1.3 @@ -0,0 +1,8 @@
     1.4 +#!/usr/bin/perl
     1.5 +
     1.6 +for $d (@ARGV) {
     1.7 +	push @d, glob("$d/*");
     1.8 +}
     1.9 +@{f} =  sort { (stat(${a}))[9] <=> (stat(${b}))[9] } (@d); 
    1.10 +print "tail -f ${f[$#f]}\n";
    1.11 +__END__