Following a list of useful tools that are mainly usable from terminal or from a text editor with basic vim feature.
Common tool to search for patterns in files directly from terminal. If searching in the current file is enough, using / operator with vim is often more convenient. Read the friendly manual to learn more about grep: grep --help.
Usage: grep [OPTION]... PATTERN [FILE]...
Common tool to search for patterns and replace using simple strings or regex in files directly from terminal. If replacing in the current file is enough, using :%s/old-val/new-val/g operator with vim is often more convenient. Read the friendly manual to learn more about grep: sed --help.