ls and globbing and full pathnames
- From: "Robert MannI" <robmnl@xxxxxxxxx>
- Date: Tue, 23 Jan 2007 00:45:33 +0100
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.jpg
/var/www/site2:
index.html, some_other_file
---
Which is beautiful, but I need to work with the output, hence 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?
Muchas Gracias (Thanks),
Rob
- Follow-Ups:
- Re: ls and globbing and full pathnames
- From: Andrew Sackville-West
- Re: ls and globbing and full pathnames
- Prev by Date: Re: monodevelop in Etch
- Next by Date: Re: help with C algorythm (find unique value in an array) could you please make changes
- Previous by thread: Help! Can't login or su, but SSH is ok...
- Next by thread: Re: ls and globbing and full pathnames
- Index(es):
Relevant Pages
|