On 22:26 26 Apr 2002, Werner Puschitz <[EMAIL PROTECTED]> wrote:
| I think this should work:
| find . -type d | xargs -l1 basename

I'm rather fond of:

        ls -l | grep '^d'
or
        ls -l | sed -n 's/^d.* //'

myself. Or the more precise:

        ls -d */. | sed 's/..$//'

How they work left as an exercise to the reader.
-- 
Cameron Simpson, DoD#743        [EMAIL PROTECTED]    http://www.zip.com.au/~cs/

Always code as if the guy who ends up maintaining your code will be a violent
psychopath who knows where you live.
        - Martin Golding, DoD #0236, [EMAIL PROTECTED]



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to