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
-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
[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
> > 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
> > > 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
> >
> > 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
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/*
>
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.
8 matches
Mail list logo