Using find with grep to find strings in files

Here is how to find files containing a certain string. This works in any system supporting Unix commands, including OSX.

find . -name '*.xml' -exec grep 'string to find' {} \;

Sometimes the files have no line breaks, so you just want to see the filename of the matches. Then you need the -l parameter.

find . -name '*.xml' -exec grep -l 'string to find' {} \;

Publicerat i Kod | Etiketter , , , | Kommentarer inaktiverade för Using find with grep to find strings in files

Svadhyaya

The Svadhyaya niyama means self-study. For me, it’s analyzing that truly matters to you, what gives you energy and inspirations and what drains you. Which people do you feel easy to be around, and which ones are stress sources? Is feeling anxious in that situation an obstacle to overcome or a clear warning about something harmful? And very important: your true self might probably differ from what others expect.

Some things I’ve learned:
☦ People with sense of entitlement sucks.
☦ Running is meditation. Should be outdoors unless it’s a blizzard, on my own, uninterruptible and with good headphones.
☦ A digital detox of two or three days each year feels great, gives energy, creativity and vitality.
☦ Google Calendar is perfect.
☦ Need a focus boost? Phone in silent and Bach (yes, the classical composer) in headphones gets the job done.
☦ The Facebook app is malware.
☦ When physical meetings isn’t possible, e-mail is superior for most work related communication.
☦ Write journals (note to self: you practice yoga every day since Spring 2017 and you post almost every day to the ’Gram, then writing a few lines of text each day should be a piece of cake).
☦ If I’m thirsty, I’m thirsty. The Goddess gifted us with good warning systems, and I prefer to have mine working.

Publicerat i Yoga | Kommentarer inaktiverade för Svadhyaya

Second season of Creative Playful Yogis

The second season of Creative Playful Yogis is done. I did deliberately choose poses similar to the first season to check progress.

First season

Second season

Publicerat i Yoga | Kommentarer inaktiverade för Second season of Creative Playful Yogis

Flexi Hips and Hammies third season

Thank you all hosts and sponsors for yet another awesome season of the Flexi Hips and Hammies challenge!

The first season was in April 2018, and second in August-September 2018 and the third one was last week. Every day or episode had a consistent assignment across the seasons, i.e. wide-legged forward fold for day one and uttita hasta pandangustasana for day two. It was hence possible to track progress against past seasons, by selecting the same variation of the poses.

Here are my entries for the current season:

Season 2

Season 1


Publicerat i Yoga | Kommentarer inaktiverade för Flexi Hips and Hammies third season

Cyber terrorist attack

We had a minor downtime today due to cyber terrorist attacks. Offending sources include IP 5.39.73.126 and 159.89.239.239. I suggest a preemptive block in your firewall or .htaccess.

Publicerat i Okategoriserade | Kommentarer inaktiverade för Cyber terrorist attack