Re: quick directory question
-----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 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 debian-user-request@lists.debian.org < /dev/null
>
>
PGP Public Key available at http://web.morgul.net/~frodo/mail.html
or by `finger -l frodo@morgul.net`
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv
iQCVAwUBOVtSyodCcpBjGWoFAQH/TQQAn6YjzwVvQ2MTxlca3w6tUZ/5GgVkIPXf
n5gsR4cxg7h+tLAqu50nP19BE1j4a2Y/FkQ2kBQPriOuQDV/tWbyPZkf2yJgpJA6
Yz2omokVOWUV+MXY8bwwEDHZmRI/dKnwAxhqJ7xQsz+s3Dq9jE0r7vPhLmX5us0G
lzvOsoRykCI=
=sHW1
-----END PGP SIGNATURE-----
Reply to: