Date: Wed, 12 Mar 1997 06:26:10 -0800 From: "Jordan K. Hubbard" <jkh@time.cdrom.com> To: Juan Savioli <jcs@dhi.dk> Cc: questions@FreeBSD.org (FreeBSD questions) Subject: Re: dos2ux Message-ID: <693.858176770@time.cdrom.com> In-Reply-To: Your message of "Wed, 12 Mar 1997 10:12:35 GMT." <97Mar12.101039gmt.27781-1@gateway.dhi.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
> could anybody tell how to get rid of all the strange characters > which appear when I get a file from DOS. I work also in > a HP machine and there we have a command called dos2ux, > but we do not have it in FreeBSD. sed -e 's/ $//' < dosfile > unixfile (note: that's a genuine ^M I've embedded in the sed command; if your mailer hates it, just remember that you're basically just trying to use sed to strip the trailing carriage returns, and that's matched by the pattern '^M$'). Jordan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?693.858176770>