Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Batch processing files in a directory

by tmharish (Friar)
on Feb 13, 2013 at 15:23 UTC ( #1018557=note: print w/ replies, xml ) Need Help??


in reply to Batch processing files in a directory

ls *.ptseq | perl -Mstrict -nwe 'my $file = $_; chomp( $file ); my ( $name, $dont +_care ) = split( /\./, $file ); print "cp $file $name" . "1" . ".txt +&& cp $file $name" . "2" . ".txt\n" ' > run.sh && sh run.sh && rm ru +n.sh


Comment on Re: Batch processing files in a directory
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2014-09-16 05:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (156 votes), past polls