Re: Finding variables in source code


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.


On Mon, Jul 16, 2018 at 3:07 PM AA9GG < paul.aa9gg@...> wrote:
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.  


On Sun, Jul 15, 2018 at 11:22 AM, Jack Purdum via Groups.Io <jjpurdum@...> wrote:
I think we all run into situations where we need to find the definition of a variable or object in a large set of files. The UNIX tool Grep is perfect for doing that. The Grep version I use is not longer available, but I just downloaded and tried this version and it seems to work well:

If you want to change the data type of a variable, use Grep and type in the variable name, supply a search path, and BINGO it finds all occurrences of that string in the directory/subdirectories seach.

Jack, W8TEE

On Sunday, July 15, 2018, 11:06:15 AM EDT, Lee < mr.olson@...> wrote:

Thanks Mike,  I did not know about General coverage mode.  It seems to step buy .1MHZ  which is what I was trying to do.  Thanks to the others for the WWV ideas but my reference to WWV was an example. 

My changes work as I wanted but I still would like to figure out how to make it display correctly.  I cannot find where to change the data type to unsigned long.
Lee - N9LO  "I Void Warranties"




Paul Mateer, AA9GG
Elan Engineering Corp.
NAQCC 3123, SKCC 4628



Join to automatically receive all group messages.