D&C GLug - Home Page

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

Re: [LUG] grep searches

 

On 07/08/12 11:18, Gordon Henderson wrote:
> 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
>

It is good that there are several solutions to the same problem,  shows
the power of unix type systems in general. 

Paul

-- 



--
http://drupal.zleap.net
skype : psutton111
http://www.linkedin.com/pub/paul-sutton/36/595/911


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