in reply to Re: How to create an output file for each input file
in thread How to create an output file for each input file
#get the names of all .tab files in inbox directory opendir(DIR,$inbox); @files = grep(/\.TAB$/,readdir(DIR)); closedir(DIR); ## loop through the TAB files### foreach $file (@files) { chomp; $verifile = $outbox.$yr.$mn.$day.$hr.$min.$sec."_FIXED.TAB"; open(OUTPUT_FILE, ">>$verifile")||die "Can't open file: $!"; #string manipulation will go here close OUTPUT_FILE; }# end for each file
Edit: g0n - code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to create an output file for each input file
by apl (Monsignor) on Apr 02, 2008 at 20:47 UTC | |
by Anonymous Monk on Apr 02, 2008 at 22:39 UTC | |
by apl (Monsignor) on Apr 02, 2008 at 23:01 UTC | |
by Anonymous Monk on Apr 02, 2008 at 23:10 UTC | |
by apl (Monsignor) on Apr 03, 2008 at 01:04 UTC | |
| |
by steph_bow (Pilgrim) on Apr 03, 2008 at 10:41 UTC | |
by Anonymous Monk on Apr 03, 2008 at 13:54 UTC | |
by steph_bow (Pilgrim) on Apr 07, 2008 at 12:39 UTC |