Find text string in file

Python script looks for specific text inside any file smaller than a maximum size (avoiding searching 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)
  • Windows Subsystem for Linux: nano $(findtext mytext)