Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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

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 making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2016-06-26 22:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (331 votes). Check out past polls.