type discriminating directory listing

Guy Harris guy at auspex.auspex.com
Tue May 9 04:55:44 AEST 1989


>what would be the command for getting a partial directory listings
>of only the subdirectories and symbolic-links ?

If you mean "what would be the command for listing all those files
within a particular directory that are either subdirectories or symbolic
links", try "ls -l | egrep '^[dl]'".  If you want a recursive listing of
that flavor, try "find . \( -type d -o -type l \) -print".



More information about the Comp.unix.questions mailing list