/home/karl/

Robert P. J. Day rpjday at crashcourse.ca
Wed May 12 07:58:05 UTC 2010


On Wed, 12 May 2010, Dotan Cohen wrote:

> On 12 May 2010 01:46, Rei Shinozuka <shino at panix.com> wrote:
> > when i used to have quotas, i used to run this in $HOME :
> >
> > du -s .[A-Za-z0-9]* * | sort -nr | head
> >
>
> Although the regex is nice for removing . and .. it will fail for
> directories in non-latin alphabets. I have lots of those! But why is
> that even necessary, why not simply "du -s *"? What trick am I
> missing?

  the *proper* RE for selecting all hidden objects but omitting . and
.. is, of course:

  $ echo .[^.]*

thank ya, thank ya very much.  i'm here all week.

rday

-- 

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA

            Linux Consulting, Training and Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Twitter:                                       http://twitter.com/rpjday
========================================================================




More information about the ubuntu-users mailing list