Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://448583]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2014-08-21 12:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (134 votes), past polls