[Ilugc] how to merge directory contents

  • From: steve@xxxxxxxxxxxx (steve)
  • Date: Fri Jan 15 11:03:42 2010

On 01/13/2010 08:11 PM, Saravanan S 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?


Did you consider rsync ?

cheers,
- steve
-- 
random non tech spiel: http://lonetwin.blogspot.com/
tech randomness: http://lonehacks.blogspot.com/
what i'm stumbling into: http://lonetwin.stumbleupon.com/

Other related posts: