If you are running this on a shell (bash or ksh), you could simply do:
for f in *RAN*.log; do ./script.pl < $f > $f.pd; donewhere script.pl might look like:
#!/usr/bin/perl while (<STDIN>) { # do something print "output\n"; }
In reply to Re: Opening files from a directory and batch processing into new files
by thenaz
in thread Opening files from a directory and batch processing into new files
by savem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |