I have a structure with a member secno and I want to find all the files where a secno comparison is made. So I though that a egrep would do the job nicely, and I came up with this.
egrep ".*secno == .*secno.*" *.cc
Now I had run this command multiple times, changing the comparison function each time, i.e. ==, >, <, <=, >= and !=
Does anyone know if there is way I could have done all this with one regular expression rather than the 6 that I came up with.