rblog

My latest book – Hel ved by Lars Mytting

Hel ved (“Solid Wood”)

Lars Myttings non-fiction book Hel ved («Solid wood») is one of the greatest publishing successes in Scandinavia ever. It is a «practical-lyrical» guide on the use and lore of firewood, based on Norwegian traditions and our modern science on stoves and renewable energy.

I did try today to make fire from the top as described in the book and I broke the record of getting the fireplace hot as h$#.

Things to do on a Thursday

Cleaning the drain pipes, no job to big, no job to small for this truck. Someone suggested that I could use the garden hose…I would beg to differ – the pressure washer on that truck…the noise alone from the drain when they started flushing proved that this was a serious tool way better than any garden hose.

The Mini Bottle Gallery

Yesterday at a work seminar held at the Mini Bottle Gallery. Interesting topics, and also fun afterwards to spend some time wandering around in the gallery.

The brothel theme room. As we where told, Nevada being the only state in the U.S where brothels are allowed, each place having its own mini bottle (seems to be a fact http://www.figuralminibottles.net/dug%20nevada/dug%20nevada.shtml)

And then the farmer theme, a John Deere and an International

Using grep to match lines not containing a word

My case was: Match all lines with key purgepolicy, but not containing the word Entirepool


purgePolicy=EntirePool
purgePolicy=FailingConnectionOnly

First I tried to use the ! operator in the regex, but that only causes the error

bash: !": event not found

Solution was to first find all lines with purgepolicy then pipe the result and exclude all results with EntirePool

grep "purgePolicy=" myfile.props | grep -v "EntirePool"

Solution found at http://www.thegeekstuff.com/2011/10/grep-or-and-not-operators/