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

Re: Wildcard for hidden files



On Monday 23 October 2006 17:38, Bob McGowan wrote:
> Chris wrote:
> > Hello,
> >
> > How can I list all hidden files or directories with ls?
> >
> > ls .*
> >
> > does not give the desired result.  Id like to archive all the hidden
> > files in my home folder.
> >
> > Thanks,
> >
> > Chris
>
> Chris,
>
> I've been through the list of posts responding to your question and saw
> that you did find one that worked.
>
> What I didn't see was a pure wildcard solution, so here's my
> contribution to answering the question of how many sysadmins does it
> take....
>
> ls .[!.]*
>
Wow. Ok.  That gives me the directories and their contents too.

For my purposes, which was listing and archiving all settings in a home 
directory the  suggestion by Tim worked well.

Thanks,

Chris
-- 
C. Hurschler



Reply to: