[Ilugc] how to merge directory contents

  • From: meswamy@xxxxxxxxx (swamynathan)
  • Date: Wed Jan 13 21:32:00 2010

possibly write a shell or python script

On Wed, Jan 13, 2010 at 8:11 PM, Saravanan S <dearsaravanan@xxxxxxxxx>wrote:

Hi all,
     I need to merge the contents of several directories, into a single
directory structure,
Like i have
dir1/a/1
dir1/b/2
dir2/a/10
dir2/b/20

after merging dir1 and dir2, i should get,

dirnew/a/1 and 10
dirnew/b/2 and 20

How to do this easily?


Saravanan Sundaramoorthy
Red Hat Certified Engineer
+91 99404 32545
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc




-- 
with love from India,
swamy , wattabottles
http://meswamy.blogspot.com

Other related posts: