The UNIX and Linux Forums  

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 -->
  #3 (permalink)  
Old 12-23-2007
drl's Avatar
drl drl is offline Forum Advisor  
Registered User
  
 

Join Date: Apr 2007
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 717
Hi, shamrock.
Quote:
Originally Posted by shamrock View Post
Code:
find . -name "*.dsp" | xargs -i sed 's/Test.lib//g' {}
Did you mean:

Code:
find . -name "*.dsp" | xargs sed -i 's/Test.lib//g'

that is, to supply "-i" to sed as opposed to xargs?

Otherwise, the sed operation will not be written "in place" and the sed output for all files will go to STDOUT ... cheers, drl

Last edited by drl; 12-24-2007 at 07:17 AM..