Discussion: listing directories
Afficher un message
Vieux 19/08/2006, 11h38   #5
Michael Heiming
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: listing directories

In comp.unix.shell JyotiC <jyoti.chhabra@gmail.com>:
> thanx for ur
> with find -type d
> it's recursively going inside the directory and giving all the
> subdirectories
> is there a way through with i get only top directories, not the sub-dir


Sure just check the fine manual 'man find' on howto restrict
'find' to descend only how deep you want.

Good luck

BTW
Since you might be new to usenet, this is *NOT* a groups.google
forum, even if it looks like this to you, please quote context:

"Google Groups users please read - Howto reply properly"
http://groups.google.com/support/bin...y?answer=14213

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 28: CPU radiator broken
  Réponse avec citation
 
Page generated in 0,05524 seconds with 9 queries