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: 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 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 easier way, can you let me know?

Thanks



PS. I feel a little embarrased asking such a simple question but o well =)
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


--
Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] <
/dev/null

Reply via email to