From owner-freebsd-questions Wed Mar 12 06:26:15 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id GAA14319 for questions-outgoing; Wed, 12 Mar 1997 06:26:15 -0800 (PST) Received: from time.cdrom.com (root@time.cdrom.com [204.216.27.226]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id GAA14314 for ; Wed, 12 Mar 1997 06:26:13 -0800 (PST) Received: from time.cdrom.com (jkh@localhost [127.0.0.1]) by time.cdrom.com (8.8.5/8.6.9) with ESMTP id GAA00696; Wed, 12 Mar 1997 06:26:10 -0800 (PST) To: Juan Savioli cc: questions@FreeBSD.org (FreeBSD questions) Subject: Re: dos2ux In-reply-to: Your message of "Wed, 12 Mar 1997 10:12:35 GMT." <97Mar12.101039gmt.27781-1@gateway.dhi.dk> Date: Wed, 12 Mar 1997 06:26:10 -0800 Message-ID: <693.858176770@time.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > 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