Created
September 6, 2018 14:30
-
-
Save mkrogemann/a649357ba7089c4b01d88bcde67fedd5 to your computer and use it in GitHub Desktop.
Revisions
-
mkrogemann created this gist
Sep 6, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ #!/bin/bash for thefile in `find <path to start from> -type f -name <filename pattern>` ; do grep -v "<text to be removed (affects whole line)>" $thefile > $thefile.$$.tmp mv $thefile.$$.tmp $thefile done