Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #26719

Re: ls question -- dirs only

Path csiph.com!goblin3!goblin.stu.neva.ru!panix!qz!not-for-mail
From Eli the Bearded <*@eli.users.panix.com>
Newsgroups comp.os.linux.misc
Subject Re: ls question -- dirs only
Date Fri, 19 Apr 2019 21:28:36 +0000 (UTC)
Organization Some absurd concept
Lines 15
Message-ID <eli$1904191728@qaz.wtf> (permalink)
References <d8592e3c-9c8c-4be8-a604-ba040e2b41b8@googlegroups.com>
NNTP-Posting-Host panix5.panix.com
X-Trace reader2.panix.com 1555709316 27975 166.84.1.5 (19 Apr 2019 21:28:36 GMT)
X-Complaints-To abuse@panix.com
NNTP-Posting-Date Fri, 19 Apr 2019 21:28:36 +0000 (UTC)
X-Liz It's actually happened, the entire Internet is a massive game of Redcode
X-Motto "Erosion of rights never seems to reverse itself." -- kenny@panix
X-US-Congress Moronic Fucks.
X-Attribution EtB
XFrom is a real address
Encrypted double rot-13
User-Agent Vectrex rn 2.1 (beta)
X-Comments "'Pray that I don't alter the bargain further.' Welcome Darth Google." -- HonorableSoul
Xref csiph.com comp.os.linux.misc:26719

Show key headers only | View raw


In comp.os.linux.misc, pH <wb6dwp@gmail.com> wrote:
> Is there a way to make ls display only directories?

The way I solve this (which doesn't need zsh like that other follow-up
implies) is:

   ls -d */

Works in /bin/ksh, /bin/bash, /bin/sh, and "/bin/busybox sh" on my system.
I don't have zsh or any *csh variant installed to test. /bin/sh is dash
here.

Elijah
------
simpler than using find

Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

ls question -- dirs only pH <wb6dwp@gmail.com> - 2019-04-19 13:22 -0700
  Re: ls question -- dirs only Bit Twister <BitTwister@mouse-potato.com> - 2019-04-19 15:39 -0500
  Re: ls question -- dirs only Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2019-04-19 16:51 -0400
  Re: ls question -- dirs only Grant Taylor <gtaylor@tnetconsulting.net> - 2019-04-19 14:53 -0600
    Re: ls question -- dirs only pH <wb6dwp@gmail.com> - 2019-04-19 19:37 -0700
      Re: ls question -- dirs only Andreas Kohlbach <ank@spamfence.net> - 2019-04-20 12:10 -0400
  Re: ls question -- dirs only "Carlos E. R." <robin_listas@es.invalid> - 2019-04-19 22:56 +0200
  Re: ls question -- dirs only Robert Heller <heller@deepsoft.com> - 2019-04-19 16:18 -0500
  Re: ls question -- dirs only Eli the Bearded <*@eli.users.panix.com> - 2019-04-19 21:28 +0000
    Re: ls question -- dirs only Grant Taylor <gtaylor@tnetconsulting.net> - 2019-04-19 20:41 -0600
  Re: ls question -- dirs only The Natural Philosopher <tnp@invalid.invalid> - 2019-04-20 09:30 +0100

csiph-web