Perlify your command line
I'm not a Perl expert, not even someone who know how to actually program in Perl. So please don't expect anything miraculous about Perl coming through my keyboard. I happen to prefer PHP or AWK personally, but I respect Perl very much. And sometimes, even recently, it has saved my life.
The directory tree of a big server changed and I needed to update outdated path details in some hundreds configurations files.
Usually I do this using sed, but this time I was on a system without any GNU sed available:
[oswald@solaris10 ~] [B]cat life[/B]My life is so bad![oswald@solaris10 ~] [B]sed -i 's/bad/good/g' life[/B]sed: illegal option -- iIn this case Perl was my life saver:
[oswald@solaris10 ~] [B]perl -pi -e 's/bad/good/g' life[/B][oswald@solaris10 ~] [B]cat life[/B]My life is so good!Thank you, Perl.