Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 taking refuge in the Monastery: (6)
As of 2014-08-29 01:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (275 votes), past polls