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
TED] Sent: Thursday, June 29, 2000 9:45 AM To: debian-user@lists.debian.org Subject: quick directory question Hello, I am trying to list all the directories in a directory and put it into a file. So far I have : $ ls -all -F | grep /$ | awk '{print $8}' ./ ../ .netscape/ mail/ which al

quick directory question

2000-06-29 Thread Andrew Kae
Hello, I am trying to list all the directories in a directory and put it into a file. So far I have : $ ls -all -F | grep /$ | awk '{print $8}' ./ ../ .netscape/ mail/ which almost gives me what i want but i need to get rid of that / at the end, can someone help me out? If anyone has an ea