[plug] Command drama

Bernard Blackham bernard at blackham.com.au
Mon Nov 20 10:47:57 WST 2006


On Mon, 2006-11-20 at 10:37 +0800, garry wrote:
> Can anyone help me?
> 
> I've been trying to copy just a directory structure, without the files..

find -type d -exec mkdir -p /path/to/elsewhere/{} \;

> 
> I started playing around..
> On my boxes, ls -d returns  ./

-d forces ls not to descend into a directory if it normally would.

> BUT, lsd works on Mandriva 2k6. But not with the -R switch.. I get the 
> same result as:

lsd is usually aliased to something crazy like 'ls -1F |grep /$' ... I
can't say I've ever found it useful though. "alias lsd" will tell you
what it's aliased to, if anything.

HTH,

Bernard.




More information about the plug mailing list