Hello list,

 I have a few php config files that have the windows delimiter
character in them  ('^M') that I would like to get rid of. I'm trying
to use sed to do it, and for some reason I am not having any luck.

Here's the line that I'm trying to use:

 #sed -i '.bak' 's/^M//g' config.php

However when I have a look at the backup file that's been created with
this command, it looks like there was no effect:

<?php ^M/*   Global Variables   */^M        if(!defined('DS'))^M
                define('DS',DIRECTORY_SEPARATOR);^M^M
        if(!defined("_MAINSITEPATH_"))^M
define("_MAINSITEPATH_",dirname(__FILE__).DS);^M

I was wondering is someone had a tip on how to run this command
effectively in this situation.

Thanks!
tim

-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to