1. ctrl-o open text file 2. ctrl-h open 'replace' dialogue * set 'replace unit' to 'Word' * set 'replace scope' to 'Line' * set 'unit number filter' to * set 'replace with pattern' to the content you need 3. click 'replace', done.