Re: ls and globbing and full pathnames

2007-01-30 Thread Jon Dowland
On Mon, Jan 29, 2007 at 02:26:46PM -0800, Bob McGowan wrote: > The primary issue with the form the original poster used > (and it may not be an issue, either, but intentional) is > that the wildcard path will automatically *exclude* any > and all files/directories whose names begin with a dot, > su

Re: ls and globbing and full pathnames

2007-01-30 Thread Dan H.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew Sackville-West wrote: > if you really want a comma seperated list, the check out sed or cut. or find's -printf option. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.o

Re: ls and globbing and full pathnames

2007-01-29 Thread Bob McGowan
[EMAIL PROTECTED] wrote: find /var/www/* -follow -maxdepth 1 -type f this will not work, except you only have one non-dot entry in /var/www - the first argument can only be one directory, where /var/www/* will be expanded to list of all files/directories (except those beginning with a dot) in /v

Re: ls and globbing and full pathnames

2007-01-29 Thread x_debian-user_x
> > find /var/www/* -follow -maxdepth 1 -type f > > this will not work, except you only have one non-dot entry in /var/www - the > first argument can only be one directory, where /var/www/* will be expanded > to list of all files/directories (except those beginning with a dot) in > /var/www. Ummm

Re: ls and globbing and full pathnames

2007-01-29 Thread Matus UHLAR - fantomas
> > > I need the > > > full filepaths, something like this: > > > --- > > > /var/www/site1/index.html, /var/www/site1/some_image.jpg, > > > /var/www/site2/index.html, /var/www/site2/some_other_file > > > --- > > > Is there any known way to get that kind of output instead? > > > > find /var/www > >

Re: ls and globbing and full pathnames

2007-01-28 Thread x_debian-user_x
> > I need the > > full filepaths, something like this: > > --- > > /var/www/site1/index.html, /var/www/site1/some_image.jpg, > > /var/www/site2/index.html, /var/www/site2/some_other_file > > --- > > Is there any known way to get that kind of output instead? > > find /var/www > > then you get the

Re: ls and globbing and full pathnames

2007-01-22 Thread Andrew Sackville-West
On Tue, Jan 23, 2007 at 12:45:33AM +0100, Robert MannI wrote: > Hello Linux Masters! > > I have a particular problem I need to solve related to the "ls" command > and > globbing. > > As an example, to see the all of the files in the root directories of my > websites I do: > $ ls -m /var/www/* >

ls and globbing and full pathnames

2007-01-22 Thread Robert MannI
Hello Linux Masters! I have a particular problem I need to solve related to the "ls" command and globbing. As an example, to see the all of the files in the root directories of my websites I do: $ ls -m /var/www/* This gives me the output in the form: --- /var/www/site1: index.html, some_image.