Front page | perl.beginners |
Postings from January 2012
Merging Files
Thread Next
From:
Matt
Date:
January 31, 2012 11:34
Subject:
Merging Files
Message ID:
CAAOM8FWd+OKhtUg0kub08r=T-h+8MF5OZGm0MJDLG-2D6L3_MQ@mail.gmail.com
Perhaps asking wrong place but I have two directories both full of
hundreds of text files.
dir1/file1
dir1/file2
dir2/file1
dir2/file2
I want to append all files together with same name into a new directory.
dir1/file1 contains:
hi
by
later
dir2/file1 contains:
woops
dropped
new_dir/file1 would contain:
hi
by
later
woops
dropped
Any quick perl/bash/linux way to do that? Perl myprogram v1 used two
instances and directories for logs. Perl myprogram v2 consolidates
into one directory is the reason for merge.
Thread Next