Failure should be an option

Just wanted to share a blog post I stumbled over on Seth’s blog. Since it was very short and very good (and I don’t want to lose it), I’ll just quote the whole thing here.

The flip side

It’s impossible to have a coin with only one side. You can’t have heads without tails.

Innovation is like that. Initiative is like that. Art is like that.

You can’t have success unless you’re prepared to have failure.

As soon as you say, “failure is not an option,” you’ve just said, “innovation is not an option.”

Good point and well said! Definitely something to think about. I’d say this applies both in software development and life in general. And probably in a lot of other areas you might think of :)

Unix: Recursive search for text in files

Keep forgetting how to do this, so here it is. How to do a quick and simple, recursive search for text using grep. Hint: It’s very simple.

$ grep -rl "some text" .

That’s all there is to it! grep is the command, r makes the search recursive (i.e. in the target folder and all its sub-folders), l means it will list the name of all the files where it finds the text, "some text" is the string to search for, and finally, the dot at the end means to start the search in the current directory. And just to clarify, this searches for text inside of files, in the content of the files; not the filenames.

There, now I know where to find it when I forget it next time. And perhaps I have helped someone else too :)

Good night!