The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Listing files with full path r_sethu UNIX for Dummies Questions & Answers 4 08-02-2007 06:35 PM
getting full path from relative path polypus Shell Programming and Scripting 4 03-25-2007 09:08 AM
list all files with full path of the file Sowser UNIX for Advanced & Expert Users 4 02-13-2007 02:46 PM
Full path of executing script in ksh? BriceBu Shell Programming and Scripting 2 09-19-2005 06:29 AM
Removing duplicate files from list with different path vino Shell Programming and Scripting 10 05-12-2005 05:44 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 01-23-2008
Registered User
 

Join Date: Jan 2007
Location: UB, Mongolia
Posts: 31
List files with full path

Hi all,

How to save file full name to a file. I tried the following but don't know to include path name.
Code:
[mediator@localhost tst]$ ls -l | awk '{print $9}' > outputfile.dat
[mediator@localhost tst]$ cat outputfile.dat

fifth.txt
first.txt
fourth.txt
second.txt
third.txt
My wanted result is ie:
Code:
/home/mediator_home/tst/fifth.txt
/home/mediator_home/tst/first.txt
/home/mediator_home/tst/fourth.txt
/home/mediator_home/tst/second.txt
/home/mediator_home/tst/third.txt
Thanks in advance
Reply With Quote
Forum Sponsor
  #2  
Old 01-23-2008
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,699
You could do this.

Code:
find `pwd` -name "*.*"
Reply With Quote
  #3  
Old 01-23-2008
Registered User
 

Join Date: Jan 2007
Location: UB, Mongolia
Posts: 31
Thank you very much
Reply With Quote
  #4  
Old 10-07-2008
Registered User
 

Join Date: Oct 2008
Posts: 1
I Found this in a google search. Very helpful!!!
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 06:55 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0