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
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.
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
-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
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
5 matches
Mail list logo