Awk oneliner to find a string in text files

If you want to know the name of files containing a special string, grep -c is your friend. But you also get names of files not containing your string (with count = 0). If you only want the names of files containing “mystring”, awk can help you: grep -c "mystring" * | awk ' !/:0/ ' And if you don’t even want the number of times “mystring” appears (on 1 line): ...

December 1, 2008 · 1 min · jepoirrier

Firefox 3.0 + Flash on a protected Windows PC

Very often, your company doesn’t allow you to install a new software on your company computer. For this purpose, Portable Apps is a very interesting website: it contains a lot of free software ready to be used, without any installation process. Moreover, it releases latest version of software very quickly. For example, 1 or 2 days after the launch of Mozilla Firefox 3.0, it was already in Portable Apps. Most Firefox plugins (" add-ons") can be installed in the Portable apps version of Firefox, but not all of them. The Adobe Flash plugin is one of the few ones that you can’t install without administrator rights … ...

June 22, 2008 · 1 min · jepoirrier