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

Re: For the love of GOD!!!



On 7/22/05, Ron Johnson <ron.l.johnson@cox.net> wrote:
> On Fri, 2005-07-22 at 14:42 -0400, Michael Marsh wrote:
> > 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

Which means the best thing might be to fall back on what first came to
mind for me:
$ find . -maxdepth 1 -name '.*' -ls

-- 
Michael A. Marsh
http://www.umiacs.umd.edu/~mmarsh
http://mamarsh.blogspot.com



Reply to: