Re: ls files with no extension



On Mon, 24 Sep 2007 15:22:37 -0700, Erik Max Francis wrote:

snip...
what is the ls syntax to only show the first 4? Is there a regex
required? If so, how does it work?

ls | grep -v '\.'

or, with zsh,

ls *~*.*


Thanks. Is there NO way to preserve the ls output? Must it be piped
through grep?

On a related matter, how about the find command? Is that doable?

--
Peter
.



Relevant Pages

  • Re: Colors and regex in zsh
    ... ls * | grep john ... Neither bash nor zsh have an influence on how ls displays its ... ps -fC weechat works great:) I found this example here: [http:// ...
    (comp.unix.shell)
  • Re: Colors and regex in zsh
    ... ls * | grep john ... Neither bash nor zsh have an influence on how ls displays its ... to xargs that treat it as any other character sequence). ...
    (comp.unix.shell)
  • Re: finding the full path of the program which ran.
    ... and run it with zsh: ... m-net% gcc -g boner.c -o boner ... m-net% ps waux | grep -v grep | grep cdalten ... your mom ...
    (comp.unix.programmer)
  • Re: grep is always recursive
    ... filename as an option. ... Is it a bash problem? ... Is it a grep problem?? ... not be equivalent to *in zsh and I would be ...
    (Ubuntu)
  • zsh PATH problem
    ... $ echo $PATH ... zsh: command not found: ls ... grep is in /usr/bin, ... if zsh can't deal with that. ...
    (comp.unix.shell)