Search Results

Search: Posts Made By: jim mcnamara
11,086
Posted By jim mcnamara
sed: find . -type f |\ while read file ...
sed:

find . -type f |\
while read file
do
grep -q "my_word" && sed 's/my_word/new_word/g' $file > tmp.tmp && mv tmp.tmp $file
done
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 07:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy