Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 imbibing at the Monastery: (6)
As of 2014-09-22 23:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (208 votes), past polls