D&C GLug - Home Page

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

Re: [LUG] grep searches

 

On Sun, 5 Aug 2012, stinga@xxxxxxxxxxxxx wrote:


On 05/08/12 14:13:26, paul sutton wrote:
history | grep -e dd

I get

1079  sudo sudo add-apt-repository
ppa:danielrichter2007/grub-customizer
1080  sudo add-apt-repository ppa:danielrichter2007/grub-customizer
1803  sudo dd bs=1M if=./2012-07-15-wheezy-raspbian.-15- of=/dev/sdc
1805  sudo dd bs=1M if=./2012-07-15-wheezy-raspbian.img of=/dev/sdc

if I wanted to not include add and just instances of dd how do I do
this,  I tried

history|grep -e " dd "

... may fail if there is a TAB before dd rather than a space...

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

  history | fgrep 'dd\b'

Gordon

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