Re: Finding variables in source code
toggle quoted messageShow quoted text
True, Ron, and that's were Grep shines over most editors, since they are usually limited to the current file. Grep not only searches all of the files in the current directory, it also search all of the subfolders of the current directory. Often that "deep search" is exactly what's needed.
On Monday, July 16, 2018, 6:52:27 PM EDT, W2CTX <w2ctx@...> wrote:
IDE "find" is really handy but it only searches the currently opened file. The old
"grep" command can search many files.
On July 16, 2018 at 5:21 PM Arv Evans <arvid.evans@...> wrote:
The Arduino IDE, and most other IDEs include "find" and "find next" in the edit commands.
This is very similar to the now ancient UNIX grep, fgrep, etc that eventually made its way into
several DOS editors. Linux has continued the grep legacy in original and several new forms.
Not sure but I would think that Apple's OSX would also include the function as it was there in
original BSD UNIX. It is also present in the shell programming tool for my Linux based
Android cell phone.
Us real old timers might use use SED (stream editor)to find and change specific words in
one pass. This is handy for changing all occurrences of a word in the whole document.
I remember GREP from the old DOS days. Most editors for programming have a search feature. One could also load the code into a text editor and use its search function.
Join BITX20@groups.io to automatically receive all group messages.