Simple stuff to use and remember; one liner grep and replace and when the time on your server is not ok

Grep and replace over all files in the current dit and the dirs below that;

perl -e '@f=`find . -type f`;foreach(@f){chomp;$s=`cat $_`;$s=~s/php/jsp/isgm;open(F,">$_");print F $s; close F;}';

When the time on the server is not ok, even after running ntpdate, probably your timezone is wrong. Run:


and set your timezone even when it looks ok already.

Be the first to leave a comment. Don’t be shy.

Join the Discussion

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>