The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



Thread: create paths
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 08-06-2007
jim mcnamara jim mcnamara is offline
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,365
Do you want to list files in a directory tree with a full path name?
Here is an example for a directory called "dir"
Code:
prefix="/dir"
find $prefix -type f |\
while read file 
do
       printf "%s/%s\n" "$prefix" "$file"
done > listfile
Reply With Quote