Re: ls and globbing and full pathnames
- From: x_debian-user_x@xxxxxxxxxxxxxxxxxxxxx
- Date: Mon, 29 Jan 2007 17:04:22 +0000
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
- Follow-Ups:
- Re: ls and globbing and full pathnames
- From: Bob McGowan
- 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
- Re: ls and globbing and full pathnames
- From: Matus UHLAR - fantomas
- ls and globbing and full pathnames
- Prev by Date: Re: howto for setting up an debian home network router
- Next by Date: Problem with accessrunner
- Previous by thread: Re: ls and globbing and full pathnames
- Next by thread: Re: ls and globbing and full pathnames
- Index(es):
Relevant Pages
|