On Wed, Dec 03, 2003 at 11:12:28AM -0800, Gary Kline wrote:
>
> FWIW, I'm attaching 'cvt' that I've used for years.
> It does conversions between dos, unix, vax, mac quite
> cleanly. Just untar and type "make unix". Put the
> cvt binary into your ~/bin directory.
>
>
FWIW, I'm attaching 'cvt' that I've used for years.
It does conversions between dos, unix, vax, mac quite
cleanly. Just untar and type "make unix". Put the
cvt binary into your ~/bin directory.
% cvt -u
translates files from whatever fmt to U
* paul beard <[EMAIL PROTECTED]> [2003-12-01 03:07]:
> On Nov 30, 2003, at 6:53 PM, Melvyn Sopacua wrote:
> >BTW: why is this even an issue that needs a solution? XHTML doesn't
> >care one
> >way or the other, since all linear spacing is folded into one space.
>
> It's distracting to look at all
in message <[EMAIL PROTECTED]>,
wrote Rob Ellis thusly...
>
> On Tue, Dec 02, 2003 at 05:53:59PM -0500, parv wrote:
> >
> > It pains me not to see even a mention of sed ... To rectify the
> > situation...
> >
> > sed -e 's/^M$//' old > new && mv -f new old
> >
>
> Freebsd's sed has -i
>
>
On Tue, Dec 02, 2003 at 05:53:59PM -0500, parv wrote:
> in message <[EMAIL PROTECTED]>,
> wrote Bryan Cassidy thusly...
> >
> > I've downloaded a couple of .xhtml files and they have ^M characters
> > all through it. I tried the col -b < name > newname command on these
> > files but when I do that
On Tue, Dec 02, 2003 at 04:58:06PM -0600, James Schmidt wrote:
> Using Vi, use this command
>
> :1,$ s///g
To save two keystrokes try this :-)
:% s///g
Marc
--
Marc Wiz
[EMAIL PROTECTED]
Yes, that really is my last name.
___
[EMAIL PROTECTED] mailing
Using Vi, use this command
:1,$ s///g
HTH
James
On Tue, 2 Dec 2003, parv wrote:
> in message <[EMAIL PROTECTED]>,
> wrote Bryan Cassidy thusly...
> >
> > I've downloaded a couple of .xhtml files and they have ^M characters
> > all through it. I tried the col -b < name > newname command on thes
in message <[EMAIL PROTECTED]>,
wrote Bryan Cassidy thusly...
>
> I've downloaded a couple of .xhtml files and they have ^M characters
> all through it. I tried the col -b < name > newname command on these
> files but when I do that it erases the whole document. Any ideas?
Ah, a FAQ of comp.unix.*
I found this one that works
cat [filename] | tr -d '/r' > out; mv out [new filename]
Mark
- Original Message -
From: "Big Daddy EBK" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 01, 2003 4:51 PM
Subject: Re: Remove ^M characters
oke the cup-holder on my computer!!
Date: Mon, 1 Dec 2003 23:10:33 +0530
From: Shantanoo Mahajan <[EMAIL PROTECTED]>
Subject: Re: Remove ^M characters from xhtml file
To: Robin Schoonover <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: tex
+++ Robin Schoonover [freebsd] [30-11-03 19:17 -0700]:
| On Sun, 30 Nov 2003 21:16:02 -0600, Bryan Cassidy <[EMAIL PROTECTED]>
| wrote:
| > I've downloaded a couple of .xhtml files and they have ^M characters
| > all through it. I tried the col -b < name > newname command on these
| > files but whe
>
> I've downloaded a couple of .xhtml files and they have ^M characters
> all through it. I tried the col -b < name > newname command on these
> files but when I do that it erases the whole document. Any ideas?
This is because the file was created in MS-land.
On your FreeBSd system do:
tr -d
> I've downloaded a couple of .xhtml files and they have ^M characters
> all through it. I tried the col -b < name > newname command on these
> files but when I do that it erases the whole document. Any ideas?
handy little shell script i found a while ago which does exactly what you're
after
#!
On Sun, 2003-11-30 at 21:18, Alex de Kruijff wrote:
> On Sun, Nov 30, 2003 at 09:16:02PM -0600, Bryan Cassidy wrote:
> > I've downloaded a couple of .xhtml files and they have ^M characters
> > all through it. I tried the col -b < name > newname command on these
> > files but when I do that it eras
On Sun, 30 Nov 2003 21:39:33 -0600, Bryan Cassidy wrote:
> Well, I take that back. It worked on 1 file and then ir started
> erasing the contents of the file.
tr -d \\r < file > tmp && mv tmp file
or
col -b < file > tmp && mv tmp file
___
[EMAIL PROTE
On Sun, 30 Nov 2003, Bryan Cassidy wrote:
> I've downloaded a couple of .xhtml files and they have ^M characters
> all through it. I tried the col -b < name > newname command on these
> files but when I do that it erases the whole document. Any ideas?
perl -pi -e "s#\r##g"
If it is just one or
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Well, why have a BUNCH of ^M characters in your file if you don't *need*
them? If there is no point in having these characters I want them
removed. BTW, your command worked fine. I've tried it on several files
and it works just fine. Thanks.
On Mon, 1
On Nov 30, 2003, at 6:53 PM, Melvyn Sopacua wrote:
Another way: perl -pi.bak -e 's/\r$//' *.xhtml
BTW: why is this even an issue that needs a solution? XHTML doesn't
care one
way or the other, since all linear spacing is folded into one space.
It's distracting to look at all that stuff if you'r
On Monday 01 December 2003 04:39, Bryan Cassidy wrote:
> Well, I take that back. It worked on 1 file and then ir started erasing
> the contents of the file.
>
> On Sun, 30 Nov 2003 21:29:13 -0600
>
> Bryan Cassidy <[EMAIL PROTECTED]> wrote:
> > Sorry about sending you a e-mail directly. The tr -d
On Sunday 30 November 2003 10:39 pm, Bryan Cassidy wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Well, I take that back. It worked on 1 file and then ir started erasing
> the contents of the file.
perl -pi -e "s:^M::g"
Usually works for me.
Picked it up from http://www.freebsddiar
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Well, I take that back. It worked on 1 file and then ir started erasing
the contents of the file.
On Sun, 30 Nov 2003 21:29:13 -0600
Bryan Cassidy <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Sorry about sending y
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Sorry about sending you a e-mail directly. The tr -d '/r' < name >
newname worked perfect. Thanks.
On Sun, 30 Nov 2003 19:17:46 -0700
Robin Schoonover <[EMAIL PROTECTED]> wrote:
> On Sun, 30 Nov 2003 21:16:02 -0600, Bryan Cassidy
> <[EMAIL PROTECTED]
On Sun, Nov 30, 2003 at 09:16:02PM -0600, Bryan Cassidy wrote:
> I've downloaded a couple of .xhtml files and they have ^M characters
> all through it. I tried the col -b < name > newname command on these
> files but when I do that it erases the whole document. Any ideas?
There's a port called dos
On Sun, 30 Nov 2003 21:16:02 -0600, Bryan Cassidy <[EMAIL PROTECTED]>
wrote:
> I've downloaded a couple of .xhtml files and they have ^M characters
> all through it. I tried the col -b < name > newname command on these
> files but when I do that it erases the whole document. Any ideas?
dos2unix (c
I've downloaded a couple of .xhtml files and they have ^M characters
all through it. I tried the col -b < name > newname command on these
files but when I do that it erases the whole document. Any ideas?
___
[EMAIL PROTECTED] mailing list
http://lists.fre
25 matches
Mail list logo