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 -->
  #14 (permalink)  
Old 04-17-2007
dannyd dannyd is offline
Registered User
 

Join Date: Feb 2007
Posts: 20
Quote:
Originally Posted by ghostdog74
no need the for loop
Code:
find . -size +1024c -type f -name "*.txt" -print0 | xargs -0 sed -i 's/term/replace/g'
NB. -i option only for gnu sed.
I can run this on the command line, but...

Wouldnt this search only files that end with .txt and would it search subfolders ?
Reply With Quote