The UNIX and Linux Forums  

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



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #9 (permalink)  
Old 04-17-2007
dannyd dannyd is offline
Registered User
 

Join Date: Feb 2007
Posts: 20
So I guess this would be the final solution ?

for file in $(find . -name '*' -type f -print ) ; do
sed 's/mysite.com/mysite.net/g' $FileName > $$TempFile
mv $$TempFile $FileName
done

If i want to run this command do I type this out on the command line or do i have to make a shell script and run the shell script ?
Reply With Quote