Help for this page

Select Code to Download


  1. or download this
    my @files = glob( "/var/log/messages*" );
    
    ...
    my @sortedfiles = sort {
        ( stat($b) )[9] <=> ( stat($a) )[9]
    } @files;