Re: Wildcard for hidden files

2006-10-23 Thread José Alburquerque
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

Re: Wildcard for hidden files

2006-10-23 Thread Chris
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 > > Chr

Re: Wildcard for hidden files

2006-10-23 Thread Bob McGowan
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 fin

Re: Wildcard for hidden files

2006-10-22 Thread Tim Post
Oh, yeah? open "$" ,8 :P On Sun, 2006-10-22 at 05:28 -0500, Ron Johnson wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 10/22/06 05:21, Tim Post wrote: > > A really bad joke is brewing if this thread keeps up. Ah heck, why not. > > > > How many sysadmins does it take to list t

Re: Wildcard for hidden files

2006-10-22 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/22/06 05:21, Tim Post wrote: > A really bad joke is brewing if this thread keeps up. Ah heck, why not. > > How many sysadmins does it take to list the files in one directory? In OpenVMS, it's very easy: DIR :== DIREC/DA/SIZ=ALL DIR SYS$LOGIN:

Re: Wildcard for hidden files

2006-10-22 Thread Tim Post
A really bad joke is brewing if this thread keeps up. Ah heck, why not. How many sysadmins does it take to list the files in one directory? ... [ ducking ] On Sun, 2006-10-22 at 12:16 +0200, David Jardine wrote: > On Sun, Oct 22, 2006 at 10:19:20AM +0200, Bj??rn Lindstr??m wrote: > > Ron Johnson

Re: Wildcard for hidden files

2006-10-22 Thread David Jardine
On Sun, Oct 22, 2006 at 10:19:20AM +0200, Bj??rn Lindstr??m wrote: > Ron Johnson <[EMAIL PROTECTED]>: > > > To get *only* (well, *mostly*) hidden files), try: > > > > ls -aFl | grep " \." > > That's quite a bit more complex than necessary. > > ls -d .* But again, that also gives you the . and .

Re: Wildcard for hidden files

2006-10-22 Thread Björn Lindström
Ron Johnson <[EMAIL PROTECTED]>: > To get *only* (well, *mostly*) hidden files), try: > > ls -aFl | grep " \." That's quite a bit more complex than necessary. ls -d .* -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: Wildcard for hidden files

2006-10-21 Thread Chris
On Saturday 21 October 2006 18:37, Tim Post wrote: > ls -A | grep ^[.] doesn't give you . and .. :) > > tar -czvf foo.tar.gz `ls -A | grep ^[.]` should produce the results you > want wrt archiving the resulting files. > > Best, > -Tim > > > ls -a | grep ^[.] > > > > This will, however, still give y

Re: Wildcard for hidden files

2006-10-21 Thread Chris
On Saturday 21 October 2006 18:30, Girish Venkatachalam wrote: > On Sat, Oct 21, 2006 at 05:31:11PM +0200, Chris wrote: > > I know, I'm being a pain, but if I want to pipe this list to tar? > > Something like: > > > > tar -cvvzf test.tar.gz (ls -aFl grep " /.") > > > > ??? > > Who said so ? That y

Re: Wildcard for hidden files

2006-10-21 Thread Tim Post
ls -A | grep ^[.] doesn't give you . and .. :) tar -czvf foo.tar.gz `ls -A | grep ^[.]` should produce the results you want wrt archiving the resulting files. Best, -Tim > > ls -a | grep ^[.] > > This will, however, still give you the . and .. directories. > > --Ben > > -- To UNSUBSCRIB

Re: Wildcard for hidden files

2006-10-21 Thread Girish Venkatachalam
On Sat, Oct 21, 2006 at 05:31:11PM +0200, Chris wrote: > I know, I'm being a pain, but if I want to pipe this list to tar? Something > like: > > tar -cvvzf test.tar.gz (ls -aFl grep " /.") > > ??? Who said so ? That you are a pain? :-) You are a pleasure since I know the best way to do it. :-)

Re: Wildcard for hidden files

2006-10-21 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/21/06 10:31, Chris wrote: > On Saturday 21 October 2006 14:48, Clive Menzies wrote: >> On (21/10/06 07:23), Ron Johnson wrote: >>> On 10/21/06 07:14, Clive Menzies wrote: On (21/10/06 14:01), Chris wrote: [snip] > I know, I'm being a pain, b

Re: Wildcard for hidden files

2006-10-21 Thread Ben Breslauer
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 ls -a | grep ^[.] This will, however, still give you the . and .. directories. --Ben -- To UN

Re: Wildcard for hidden files

2006-10-21 Thread Chris
On Saturday 21 October 2006 14:48, Clive Menzies wrote: > On (21/10/06 07:23), Ron Johnson wrote: > > On 10/21/06 07:14, Clive Menzies wrote: > > > On (21/10/06 14:01), Chris wrote: > > >> Hello, > > >> > > >> How can I list all hidden files or directories with ls? > > >> > > >> ls .* > > >> > > >>

Re: Wildcard for hidden files

2006-10-21 Thread Clive Menzies
On (21/10/06 07:23), Ron Johnson wrote: > On 10/21/06 07:14, Clive Menzies wrote: > > On (21/10/06 14:01), 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

Re: Wildcard for hidden files

2006-10-21 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/21/06 07:14, Clive Menzies wrote: > On (21/10/06 14:01), 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 >>

Re: Wildcard for hidden files

2006-10-21 Thread Clive Menzies
On (21/10/06 14:01), 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. ls -al Regards Clive -- www.clivemenzies.co.uk ... ...strategies for busines