I have:$ find 1 2 -printf '%i %p\n'40011805 140011450 1/t40011923 1/a40014006 1/a/e40011217 1/a/q40011806 240011458 2/y40011924 2/a40013989 2/a/e40013945 2/a/wI want:<inode>  <path>any      240011450 2/t40011458 2/yany      2/a40014006 2/a/e40011217 2/a/q40013945 2/a/wHow do do it?
How do I merge (without copying) two directories?
command line;merge;move;vfs
Already answered.Here is version adapted to this task:D=$(readlink -f 2); (cd 1 && find . -type f -print0 | cpio --pass-through --null --link --make-directories $D) && rm -Rf 1After this command I have exactly what I wanted:$ find 1 2 -printf '%i %p\n'find: `1': No such file or directory40011806 240011450 2/t40011458 2/y40011924 2/a40011217 2/a/q40014006 2/a/e40013945 2/a/wRead notes about usage in the original answer (linked above).