Category: Debian

How to remove blank lines from text files or php files or js files or…

Posted by – June 22, 2012

By running this command…

egrep --include=*.php -lRZ "^$"  ./ | xargs -0 -l   sed -i -e '/^$/d'

Just two parts to it, search for all *.php files and use sed to replace new lines with nothing.

That’s all.

Debian – The best Linux distro

Posted by – August 11, 2011

When one of my friend introduced me to Ubuntu Linux I was impressed by its user friendliness. Till that day I had used Red Hat Linux, Fedora and Knoppix. They were not cut out for an average PC user. In my opinion a geek using Linux doesn’t make Linux popular. Its an average PC user who will make it popular. The guy who introduced me to Linux was not a software guy in fact he is a doctor, oncologist to be precise. Ubuntu replaced Red Hat as my preferred Linux distro. Then came Compiz and shiny effects on Ubuntu made me a die hard fan. Till then I didn’t know Ubuntu was based on Debian. Then for more than 2 years, I didnt boot into Windows, when I needed Windows I ran it in a VM environment in Ubuntu. But Ubuntu was for an average user and this year I decided to switch to Debian. It turns out that I made a correct decision.  According to TuxRadar, Debian is the the best Linux distro of 2011! If that wasn’t all, Debian was favoured by Linux.com as their choice of production server.