Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: UN*X ls, sed, cat... in Perl

by graff (Chancellor)
on Apr 17, 2005 at 04:58 UTC ( #448583=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @files = reverse (sort { $files{$a} <=> $files{$b} } keys %files);
    
  2. or download this
    @files = sort { $files{$b} <=> $files{$a} } keys %files;
    
  3. or download this
    my $redirect = ( $TRACE < 2 ) ?  '>' : '| tee';
    
    system( "sed s/{author}.*//g <$file $redirect ${file}1.txt";