Delete the whole line of the corresponding field after finding a field in the text editor

which editor, sublime or atom or any other editor, can achieve the following functions
I now have a lot of files, more than a hundred
now I want to delete the lines containing the example field in all files, how can I quickly operate

Mar.09,2021

try it with shell's sed command, for example:

 find . -name *.html | xargs sed -i '/example/d'

it's OK to replace sublime text3 in batches. The shortcut key is Ctrl+Shift+F

and then select Save all

.

Editplus has similar functions


sublime can be achieved by selecting all the 'example' fields in Ctrl D and then using the shortcut key to delete the current line (forget the shortcut key).


sublime, cmd + shift + f looks for the folder, and then the regular pattern matches to an entire line, replace can.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e8f2d7-1235.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e8f2d7-1235.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?