Chris wrote:

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
Hate to add, but if you use 'ls -d' with the wildcard above, the contents of the directories are not included. I suppose we all have some sysadmin in us somewhere. :-)

--
Sincerely
Jose Alburquerque


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to