Re: ls and globbing and full pathnames



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 full joy of using find's many features too.

And certainly some of those options are needed to print just "all of
the files in the root directories... "

find /var/www/* -follow -maxdepth 1 -type f

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/*/*


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



Relevant Pages

  • 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)
  • Re: Re: Help! My gnome desktop has been cleared!
    ... I have tried nearly everything and no joy ... ... I have faith in you guys! ... I created a new account and it works fine. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: my fonts changed
    ... Many thanks for this pointer! ... Joy, joy, joy! ... Amateur radio exams; ham radio; Linux info @ | free since January 1998. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Spam and the Netski virus....
    ... confirming your address to these idiots. ... "Joy" wrote in message ... I have been using> the "unsubscribe" links that are at the bottom of these> messages, but have now started getting rampant Netski> virus's. ... Has/is entering my email address at these> unsubscribe sites, ...
    (microsoft.public.internet.mail)
  • Re: ls and globbing and full pathnames
    ... to list of all files/directories (except those beginning with a dot) in ... Maybe this would suffice (note it prints directories as well): ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)