I have a sentence that I want to write a shell command to grep it from a text: The sentence is:
self.timeout=2.0
However, as this is a part of code from a file. so it this sentence could also be
self.timeout = 2.0
or
self.timeout =2.0
or
self.timeout = 8.0
that is: there may be blanks besides "=", and the value of self.timeout maybe different.
So could anybody help to give me a regex in shell command. Anyway, I know the shell:
grep "self.timeout*="
works. But I think it is not a good regex in shell command.
Thanks a lot!