Re: quick directory question

2000-06-29 Thread Daniel Free
I am currently learning to use awk myself but i think a silmple $ ls -all -F | grep /$ | awk -F/ '{print $8}' ^^^ sets the seperator to / instead of whitespace. if this doesnt work try $ ls -all -F | grep /$ | awk '{print $8}'|awk -F/ '{print $1}' and that should a

Re: quick directory question

2000-06-29 Thread Michalowski Thierry
Hi, your find is taking long time because find is recursive. Add -prune to the list of its arguments and you will probably get what you want :-) HTH Andrew Kae wrote: > Hello again > > A co-worker just helped me out and I think i found a quicker solution. I > noticed "find" can take some time.

Re: quick directory question

2000-06-29 Thread Andrew Kae
Hello again A co-worker just helped me out and I think i found a quicker solution. I noticed "find" can take some time. It's just: ls -all | grep "^d" | awk '{print $8}' Thanks again Get Your Private, Free E-mail from M

Re: quick directory question

2000-06-29 Thread Noah L. Meyerhans
-BEGIN PGP SIGNED MESSAGE- Well, to answer your first question, remove '-F' from the options list to ls. Regarding your second question, do a 'find . -type d'. Read the man page for find. HTH, noah On Thu, 29 Jun 2000, Andrew Kae wrote: > Hello, > > I am trying to list all the direct

RE: quick directory question

2000-06-29 Thread Wesley A. Wannemacher
you could use find: find ./ type d > some.file Wes Wesley A. Wannemacher Instructor, Network Administrator Northwestern College [EMAIL PROTECTED] -Original Message- From: Andrew Kae [mailto:[EMAIL PROTECTED] Sent