type discriminating directory listing

David Lawrence lawrence at its.rpi.edu
Mon May 8 15:03:57 AEST 1989


In article <1529 at cmx.npac.syr.edu> gefuchs at skolem.uucp (Gill E. Fuchs) writes:
GEF> what would be the command for getting a partial directory listings
GEF> of only the subdirectories and symbolic-links ?

% ls -al | egrep '^[ld]'

It isn't the best as far as being stuck with the long format of ls,
but it does the job.

Dave
--
      tale at rpitsmts.bitnet, tale%mts at itsgw.rpi.edu, tale at pawl.rpi.edu



More information about the Comp.unix.questions mailing list