[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Merging dirs with (almost) same name



Magnus Therning wrote:

 top/sub1/sub2
 top/Sub1/sub2
 ...

Is there some way (other than mounting a case insensitive file system,
such as FAT) to merge these directories?

How did you manage to split up the directories? How do you define 'merge'? What would you do with files like

  top/sub1/sub2/foo.txt
  top/Sub1/sub2/foo.txt
  top/Sub1/Sub2/Foo.txt

?

Check out the --backup option of cp; find, xargs and eventually sed may also be helpful.


GH



Reply to: