Find text string in file

less than 1 minute read

Python script findtext.py 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)

Categories:

Updated:

Leave a comment