[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: For the love of GOD!!!



On Fri, 2005-07-22 at 14:42 -0400, Michael Marsh wrote:
> On 7/22/05, Bruno Cesar Ribas <ribas@ufpr.br> wrote:
> > On Fri, Jul 22, 2005 at 12:01:45PM -0500, Andrew Nelson wrote:
> > > Although it seems this is far more difficult that it should be to remove all non
> > > "." file from the output of ls.  Does any one know of a better way?
> > If you want to list only the dot-started files you could do something like:
> > $ls -a1 |grep "^\."
> 
> What's wrong with
> $ ls -d .*
> ?

If, for some weird reason, there are a huge number of dot files,
it could overflow the "glob expansion buffer"

  $ dir /data/temp/*
  bash: /bin/ls: Argument list too long

-- 
-----------------------------------------------------------------
Ron Johnson, Jr.
Jefferson, LA USA
PGP Key ID 8834C06B I prefer encrypted mail.

"The Socialist who finds his children playing with soldiers is
usually upset, but he is never able to think of a substitute for
the tin soldiers; tin pacifists somehow won't do."
George Orwell, 1940, reviewing /Mein Kampf/

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: