Re: ls lacking a feature?



Mark Triggs writes:
Bernard Liang writes:

list all the directories in the cur direc

for ex, if ls -F lists

a b/ c/ d e f/

then i want a command that will give me
$ [some command]
b c f
or
b/ c/ f/

[...]

but this seems too complicated. shouldnt' there be a one-liner to
list all the directories?

I've always done:

ls -d */

That appears to work in Bash, even though the slash is not part of a
directory name. But where it works, it's overkill. This will do:

echo */

Nice.
.



Relevant Pages

  • Majordomo results: Re: Here
    ... Command 'this' not recognized. ... This is version 1.94.4 of Majordomo. ... To get a list of publicly-available mailing lists on this system, ... that an authorization key is required for subscription. ...
    (comp.lang.python)
  • Majordomo results: Re: Approved
    ... Command 'this' not recognized. ... This is version 1.94.4 of Majordomo. ... To get a list of publicly-available mailing lists on this system, ... that an authorization key is required for subscription. ...
    (comp.lang.python)
  • Majordomo results: [PMX:VIRUS] Re: Proof of concept
    ... Command 'this' not recognized. ... This is version 1.94.5 of Majordomo. ... To get a list of publicly-available mailing lists on this system, ... that an authorization key is required for subscription. ...
    (comp.lang.python)
  • Majordomo results: Look,my beautiful girl friend
    ... Command '<iframe' not recognized. ... This is version 1.94.3 of Majordomo. ... Once you've determined that you wish to subscribe to one or more lists on ... may simply send the command "unsubscribe" followed by the list name: ...
    (Debian-User)
  • Re: how to replace string in files recursively
    ... That's how xargs works. ... echo inserts a linefeed at the end of the output of every run. ... series of lists which are shorter than the max length of an argument list ... and feeds those chuncks to the command. ...
    (comp.os.linux.misc)