Accidentally setting home

Patrick O'Callaghan pocallaghan at gmail.com
Sun May 29 03:22:23 UTC 2011


On Sat, 2011-05-28 at 20:03 -0700, suvayu ali wrote:
> On Sat, May 28, 2011 at 3:45 PM, Patrick O'Callaghan
> <pocallaghan at gmail.com> wrote:
> > On Sat, 2011-05-28 at 12:18 -0700, suvayu ali wrote:
> >> Hi Michael,
> >>
> >> On Sat, May 28, 2011 at 6:23 AM, Michael Schwendt <mschwendt at gmail.com> wrote:
> >> > because the .* also
> >> > includes .., the parent directory, which in this case is /home
> >>
> >> A quick question, how can one use globs to expand only dotfiles
> >> without including ".."?
> >
> >
> > $ ls \.[^.]*
> >
> 
> Thanks a lot Patrick, I had no idea ls accepted regular expressions!

It doesn't. You need to read up on how the Shell works.

poc



More information about the users mailing list