Listing absolute path of file
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix administration > Listing absolute path of file




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Listing absolute path of file  
Pipiron


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 09: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







[ Post a follow-up to this message ]



    Re: Listing absolute path of file  
Andreas Kahari


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 09: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




[ Post a follow-up to this message ]



    Re: Listing absolute path of file  
Frank Cusack


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 09: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/{.*,*}




[ Post a follow-up to this message ]



    Re: Listing absolute path of file  
Pipiron


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 09:54 PM

Thanks!!!!

PJ







[ Post a follow-up to this message ]



    Re: Listing absolute path of file  
mark taylor


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 09:54 PM

cd /<dir>

find .  # for just filenames
find . -ls # for detailled description

These will both traverse subdirs too.

Rgds
Mark Taylor





[ Post a follow-up to this message ]



    Re: Listing absolute path of file  
lostinpa


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 09:54 PM

mky@talk21.com (mark taylor) wrote in message news:<dee0a7c3.0311180632.4378e27a@posting.google.co
m>...
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




[ Post a follow-up to this message ]



    Re: Listing absolute path of file  
Frank Cusack


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 09: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




[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:15 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register