Discussion: listing directories
Afficher un message
Vieux 19/08/2006, 12h37   #6
Bruce Barnett
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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.
  Réponse avec citation
 
Page generated in 0,04288 seconds with 9 queries