Hi, all -- ...and then Bernhard Voelker said... % ... % % # Create 'flattened' symlinks of all files in the relative $source_dir in ".". % $ find ../../../../src -type f -print0 | xargs -0 ln -nsvft . % './2' -> '../../../../src/b/2' % './4' -> '../../../../src/b/h/j/4' % './5' -> '../../../../src/b/h/i/5' % './1' -> '../../../../src/1' % './2' -> '../../../../src/2' % % BTW: As you can see, the file "2" exists several times below $source_dir, % and therefore the symlink gets overwritten. [snip] I'm surprised nobody has brought up this problem before now; it's been chewing on me from day one. That's why I would name the links based on the path, like path-to-src-b-2 path-to-src-b-h-j-4 path-to-src-b-h-i-5 path-to-src-1 path-to-src-2 in this example, to disambiguate. HTH & HAND :-D -- David T-G See http://justpickone.org/davidtg/email/ See http://justpickone.org/davidtg/tofu.txt -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org