Re: ls and globbing and full pathnames
- From: Matus UHLAR - fantomas <uhlar@xxxxxxxxxxx>
- Date: Mon, 29 Jan 2007 17:04:04 +0100
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.
On 28.01.07 23:53, x_debian-user_x@xxxxxxxxxxxxxxxxxxxxx wrote:
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
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.
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
--
Matus UHLAR - fantomas, uhlar@xxxxxxxxxxx ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
LSD will make your ECS screen display 16.7 million colors
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
- Follow-Ups:
- Re: ls and globbing and full pathnames
- From: x_debian-user_x
- Re: ls and globbing and full pathnames
- References:
- ls and globbing and full pathnames
- From: Robert MannI
- Re: ls and globbing and full pathnames
- From: Andrew Sackville-West
- Re: ls and globbing and full pathnames
- From: x_debian-user_x
- ls and globbing and full pathnames
- Prev by Date: re: how to remove Gnome and X from etch
- Next by Date: Can't post to list with mutt/exim4?!
- Previous by thread: Re: ls and globbing and full pathnames
- Next by thread: Re: ls and globbing and full pathnames
- Index(es):
Relevant Pages
|