D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] grep searches

 

On Mon, 6 Aug 2012, Simon Waters wrote:

On 05/08/12 18:29, Gordon Henderson wrote:

however, from the 'more than one way to do it' department:

  history | fgrep 'dd\b'

Doesn't work here - misses my cryptic "a dd a" line in my history, but:

history | grep '\bdd\b'

does, or was that one for Paul to generalize. I clearly don't grok what
fgrep does differently to grep, but then it is deprecated ;)

Ugh. I typed that rather than copy&paste - I have fgrep hard-wired into me. I really did mean grep!!!

Way back fgrep really was faster than grep, but I don't think that's true anymore.

Gordon

--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq