Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks, I have some n files in directory. I need to combine two files using cat $1 $2 > $3 where $2 is the file from the directory. The $1 file is common file. The files in the directory are Test1.txt, Test2.txt,... Testn.txt. The output i.e. $3 should be with a similar name as"Looping the files in directory to combine with a common file."
ThanksFinal1.txt --> $1 $Test1 Final1.txt --> $1 $Test1 .... .... .... Finaln.txt --> $1 $Testn
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Looping the files in directory to combine with a common file
by monarch (Priest) on Sep 06, 2005 at 07:36 UTC | |
|
Re: Looping the files in directory to combine with a common file
by inman (Curate) on Sep 06, 2005 at 07:35 UTC | |
|
Re: Looping the files in directory to combine with a common file
by davidrw (Prior) on Sep 06, 2005 at 12:56 UTC |