[comp.lang.perl] Listing directories

maart@cs.vu.nl (Maarten Litmaath) (05/25/90)

In article <8188@jpl-devvax.JPL.NASA.GOV>,
	lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) writes:
)In article <14108@cgl.ucsf.EDU> pett@cgl.ucsf.edu (Eric Pettersen) writes:
): 
): 	Sorry, but writing a perl script to list only directories and not
): plain files is a bit of overkill when the command "ls */" will do the same
): thing.
)
)And it's NOT overkill when the command "ls */" WON'T do the same thing.

But is IS overkill when the command "ls */." WILL do the same thing.  :-)
--
 Antique fairy tale: Little Red Riding Hood. |Maarten Litmaath @ VU Amsterdam:
 Modern fairy tale: Oswald shot Kennedy. |maart@cs.vu.nl, uunet!cs.vu.nl!maart

venables@sicsws14.sics.bu.oz.au (venables) (05/25/90)

In article <1990May24.173733.7493@uvaarpa.Virginia.EDU> 
	gaspar@STL-08SIMA.ARMY.MIL writes:
...
>
>Someone else suggested just 'ls */'--that sure doesn't work for me
>in either sh or csh.
>
	In csh try "ls -d */".  

	The "-d" is necessary to suppress recursive listing of directory 
	contents.