Is there a simple way to search a text file (source code) for all instances of a specific integer. This should not trigger on larger numbers that happen to include the integer as a sub-string, but it can't simply exclude such lines since they could contain both cases:
searching for '6'...
int a=6; // found int b=16; // not found (despite the '6' in '16') int c=6, d=16; // found
I'm really looking for a command-line approach to this, but am also curious if there is a FOSS GUI-type editor that will do it.