I don't understand why this works but... ls -d */
[root@li1233-197 log]# ls -d */ anaconda/ audit/ chrony/ httpd/ rhsm/ sa/ tuned/ Brian On Mon, Jun 25, 2018 at 7:34 PM, John Meissen <j...@meissen.org> wrote: > > rshep...@appl-ecosys.com said: > > What option would you use to list only subdirectories and not files > in the > > cwd or the subdirectories? > > I generally take the easy way and just do > ls -l | grep drw > > You could do > find . -type d -maxdepth 1 > > Or if you want it sorted, > find . -type d -maxdepth 1 | sort > > Each has it's own quirks. > > > > _______________________________________________ > PLUG mailing list > PLUG@pdxlinux.org > http://lists.pdxlinux.org/mailman/listinfo/plug > -- "Anyone who has never made a mistake has never tried anything new." -Albert Einstein _______________________________________________ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug