| Author |
Listing absolute path of file
|
|
| Pipiron 2004-01-23, 4:54 pm |
|
Hi everyone,
does anyone know how can I get list of content of directory together with
absolute paths of files in it?
I am using AIX 4.3.3
Any help will be appreciated,
PJ
| |
| Andreas Kahari 2004-01-23, 4:54 pm |
| In article <1069154646.787003@internet.fina.hr>, Pipiron wrote:quote:
>
> Hi everyone,
>
> does anyone know how can I get list of content of directory together with
> absolute paths of files in it?
> I am using AIX 4.3.3
This will do it recursively:
find /path/to/dir -print
--
Andreas Kähäri
| |
| Frank Cusack 2004-01-23, 4:54 pm |
| On Tue, 18 Nov 2003 13:10:23 +0100 "Pipiron" <pipiron0309@yahoo.com> wrote:quote:
> Hi everyone,
>
> does anyone know how can I get list of content of directory together with
> absolute paths of files in it?
ls -d $dir/{.*,*}
| |
| Pipiron 2004-01-23, 4:54 pm |
| Thanks!!!!
PJ
| |
| mark taylor 2004-01-23, 4:54 pm |
| cd /<dir>
find . # for just filenames
find . -ls # for detailled description
These will both traverse subdirs too.
Rgds
Mark Taylor
| |
| lostinpa 2004-01-23, 4:54 pm |
| mky@talk21.com (mark taylor) wrote in message news:<dee0a7c3.0311180632.4378e27a@posting.google.com>...quote:
> cd /<dir>
>
> find . # for just filenames
> find . -ls # for detailled description
>
> These will both traverse subdirs too.
>
> Rgds
> Mark Taylor
If you want to suppress subdirectories, I think I have a script that
will do what you want:
for FF in `ls -p|grep -v "/"`
do
find $PWD/$FF
done
| |
| Frank Cusack 2004-01-23, 4:54 pm |
| On 18 Nov 2003 14:03:16 -0800 bdonnelly14@hotmail.com (lostinpa) wrote:quote:
> If you want to suppress subdirectories, I think I have a script that
> will do what you want:
>
> for FF in `ls -p|grep -v "/"`
> do
> find $PWD/$FF
> done
That also misses the dirs themselves.
find /path/to/dir -maxdepth 1
but I like the glob I posted earlier, better.
/fc
|
|
|
|