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 and shell scripting languages 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 5 06-15-2009 03:56 AM
getting full path from relative path polypus Shell Programming and Scripting 4 03-25-2007 01:08 PM
list all files with full path of the file Sowser UNIX for Advanced & Expert Users 4 02-13-2007 05:46 PM
Full path of executing script in ksh? BriceBu Shell Programming and Scripting 2 09-19-2005 10:29 AM
Removing duplicate files from list with different path vino Shell Programming and Scripting 10 05-12-2005 09:44 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-24-2008
mr_bold mr_bold is offline
Registered User
  
 

Join Date: Jan 2007
Location: UB, Mongolia
Posts: 32
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
  #2 (permalink)  
Old 01-24-2008
vino's Avatar
vino vino is offline Forum Staff  
Supporter (in vino veritas)
  
 

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


Code:
find `pwd` -name "*.*"

  #3 (permalink)  
Old 01-24-2008
mr_bold mr_bold is offline
Registered User
  
 

Join Date: Jan 2007
Location: UB, Mongolia
Posts: 32
Thank you very much
  #4 (permalink)  
Old 10-07-2008
tommytomthms5 tommytomthms5 is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 1
I Found this in a google search. Very helpful!!!
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:44 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0