> I have moved my php files to linux system. > Now it z showing (control+M)(^M) characters in the file. > How can I remove those characters?
/usr/bin/perl -i.bak -npe 's/\r\n/\n/g' filename where filename is the file with he ^M line endings. Regards jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 PGP Key available, send email with subject: Send PGP Key -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php