470,619 Members | 1,817 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,619 developers. It's quick & easy.

concatenate files recursively in win32

I admit it. I'm a newbie...

I want to concatenate a series of text files by recursively going down a
folder hierarchy. All the files have the same extension (*.txt) and I'm
running WinXP Home with ActiveState Perl v5.6.1

Any help will be much appreciated.

regards, Mike
Jul 19 '05 #1
1 4978
In article <Xn*******************************@206.127.4.25> , Mike James
<bi**@spam.no> wrote:
I admit it. I'm a newbie...

I want to concatenate a series of text files by recursively going down a
folder hierarchy. All the files have the same extension (*.txt) and I'm
running WinXP Home with ActiveState Perl v5.6.1

Any help will be much appreciated.

regards, Mike


Check out the module File::Find (I have not used it, but it should
enable you to do what you want.) If you don't have that, or can't
figure out how to use it (it uses subroution references, which can make
it complicated for a beginner), then check out the opendir, readdir,
and closedir functions, and file test operators.

If you have perldoc installed:

perldoc File::Find
perldoc -f opendir
perldoc -f readdir
perldoc perlfunc <- search for "file test" or "Alphabetical
Listing of Perl Functions"
FYI: this newsgroup is defunct. Try comp.land.perl.misc in the future.
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by gwarning! | last post: by
10 posts views Thread by Martin Ho | last post: by
5 posts views Thread by rbt | last post: by
2 posts views Thread by Bint | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.