62 How to remove some text from a line (but not delete the whole line)

Suppose we wanted to delete only the word window from any line.

Do

#!/bin/bash 
 
cd $HOME/my_tree 
 
find . -name "*.txt"|while read fname; do 
  echo "processing $fname" 
  sed -i 's/windows//g' $fname 
done