Re: listing directories
"JyotiC" <jyoti.chhabra@gmail.com> writes:
> hi,
>
> i wanna write a shell script which will list all the directories in
> that folder,
> it should only output dir no other file.
> is there a command to do so
Here's another quick solution (besides find) if you can deal with ls -l
ls -l | grep '^d'
--
Sending unsolicited commercial e-mail to this account incurs a fee of
$500 per message, and acknowledges the legality of this contract.
|