The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 07-04-2008
dzufauzan dzufauzan is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 4
Quote:
Originally Posted by Franklin52 View Post
Use find to loop through the directory and the subdirectories:

Code:
for i in $(find *)
Regards
Quote:
Originally Posted by Smiling Dragon View Post
Not bourne-safe - tut tut
Code:
for i in `find *`
Quote:
Originally Posted by radoulov View Post
Both will breake if the filenames contain embedded spaces or other pathological characters.
Quote:
Originally Posted by Smiling Dragon View Post
Ooh, very good point! Me = Fail.
Ok then:
Code:
find . -type f | while read i
heh, 'pathological characters', nice way of putting it
Could you give me complete code? im newbie . Thx