"Lynn W" <[EMAIL PROTECTED]> writes:

> Thanks, but how do I use
>     find -maxdepth 1 -type d
> to just display the directories in the current directory, and not to
> recurse into subdirectories, *and* to display all the directories'
> permissions?

I'd chant something like

  find . -name . -o -type d -ls -prune

(Which happens to be compatible with non-GNU finds, which I deal with
sometimes.)  Which is to say: search, starting with the current
directory.  If its name is '.', continue; otherwise, if it's a
directory, print a 'ls -l' line and don't recurse further.

-- 
David Maze         [EMAIL PROTECTED]      http://people.debian.org/~dmaze/
"Theoretical politics is interesting.  Politicking should be illegal."
        -- Abra Mitchell


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to