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
In reply to Re: Batch processing files in a directory
by tmharish
in thread Batch processing files in a directory
by newbie1991
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |