Find text string in file

Python script looks for specific text you want inside any file smaller than a maximum size (avoiding searching huge binary files)

Recursive find and edit

To speedily edit the files recursively found, consider a command recursively searching for mytext like:

  • Linux: gedit $(findtext mytext) or nano $(findtext mytext)
  • MacOS: nano $(findtext mytext)
  • Cygwin, Windows Subsystem for Linux: nano $(findtext mytext)