Re: ls and globbing and full pathnames



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, it works for me... ;-) Using GNU 'find' as supplied with Debian.


if you really want a comma seperated list, the check out sed or cut.

Maybe this would suffice (note it prints directories as well):

ls -dm /var/www/*/*

yes, this might work

Indeed it does too.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: creating and logging a daily cron job
    ... yes the dot it was implied in what I said ... ... sarge hasn't received any security updates in a while... ... Do you know when lenny becomes stable? ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: RISCOS Ltd Press Release 06/10/05
    ... >> With great regret I am going to unsubscribe from this ng. ... >> enjoyed a lot of the postings and have received great help from ... > very people you despise in control of the field. ... Derek Barnett / derek@trefh dot demon dot co dot uk ...
    (comp.sys.acorn.misc)
  • Re: ls and globbing and full pathnames
    ... full filepaths, something like this: ... then you get the full joy of using find's many features too. ... Maybe this would suffice (note it prints directories as well): ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • file dialog in iceape
    ... it doesn't show files starting with dot. ... For the second problem I still don't have any solution. ... Can I switch to the old kind Mozilla file dialog? ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Automatically mounting USB flash disks/ USB thumb drives
    ... Singapore Synchrotron Light Source ... didierbe at sps dot nus dot edu dot sg ... To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list ... New and Improved Yahoo! ...
    (Fedora)