Archive for August, 2007

Advice on replacing relative to absolute links

Thursday, August 9th, 2007

http://wintermute.com.au/bits/2005-09/php-relative-absolute-links/

sor ted.

Get rid of (remove) ^M in files using perl

Sunday, August 5th, 2007

To remove completely

perl -pi -e ‘tr/\cM//d;’ foo.php

To replace for spaces:

perl -pi -e ‘tr/\cM/\n/d;’ foo.php

foo.php is an example file.