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
Howeve
> From owner-freebsd-questi...@freebsd.org Sun May 20 11:11:00 2012
> Date: Sun, 20 May 2012 12:08:04 -0400
> From: Tim Dunphy
> To: freebsd-questions
> Subject: eliminate character with sed
>
> Hello list,
>
> I have a few php config files that have the windows de
On Sun, 20 May 2012 12:08:04 -0400, Tim Dunphy wrote:
> 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 t
On Sun, 20 May 2012, Polytropon wrote:
Regarding the use of "sed": I'm not sure if it's possible
to do something like
% sed -i '.bak' 's/\r//g' config.php
because I assume (not tested!) that it's not possible to
put in escape sequences like that. But try for yourself
and surprise me. :
Am 20.05.2012, 18:08 Uhr, schrieb Tim Dunphy :
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
On Sun, 20 May 2012 21:10:51 +0200, Michael Ross wrote:
> Maybe you can use /usr/ports/converters/dosunix.
>
> Usage:
> dosunix INPUTFILE OUTPUTFILE
>
> DosUnix converts files from DOS text format to Unix text format
> by replacing each carriage return & newline pair wit