Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from alt.ascii-art, 17 Jan 1995.
Answer: Uploading and Trailing M's

Answer: Uploading and Trailing M's

Brad (syb...@aber.ac.uk) wrote:

> 	You can do this by creating a file containing the following line:

> tr -d '^M' <file1 >file2

> where ^M is actually a ctrl-M (you can create these in vi by hitting ^V
> followed by ^M), file1 is the original filename, and file2 is the file to
> be created. Then type, from UNIX, "source <filename--this one is the file
> you created in the first place>", and file2 will be the same as file but
> without the ^M's.


tr -d '\r' <file1 >file2

will do the same thing.  '\r' is the escape code for ^M, and doesnt
require any special way of entering it into an editor apart from just
typing it.


--
Reagan Blundell             |        "I'm lying on my back now
nod...@desire.apana.org.au   |         the stars look all too near
APANA Brisbane Regional     |         flowers on the razor wire
Management Committee        |         I know you're here" - Andrew Eldritch

Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fbb9d,fdff6929bbc2b6a1
X-Google-Attributes: gidfbb9d,public
X-Google-Thread: f996b,fdff6929bbc2b6a1
X-Google-Attributes: gidf996b,public
X-Google-ArrivalTime: 1995-01-17 05:27:56 PST
Path: nntp.gmd.de!dearn!blekul11!idefix.CS.kuleuven.ac.be!ub4b!EU.net!howland.reston.ans.net!news.sprintlink.net!sashimi.wwa.com!not-for-mail
From: nod...@desire.apana.org.au (Reagan Blundell)
Newsgroups: alt.ascii-art,rec.arts.ascii
Subject: Answer: Uploading and Trailing M's
Date: 16 Jan 1995 18:54:34 -0600
Organization: Desire -APANA-Brisbane-
Lines: 27
Sender: bob...@gagme.wwa.com
Approved: bob...@wwa.com
Message-ID: <3ff4ga$ds...@gagme.wwa.com>
References: <950...@sfa.sfa.ope.ed.gov> <3f01ta$im...@gagme.wwa.com> <3f1rlg$7h...@gagme.wwa.com>
NNTP-Posting-Host: gagme.wwa.com
Xref: nntp.gmd.de alt.ascii-art:19045 rec.arts.ascii:3609
About this message. This message was posted publicly to the newsgroup alt.ascii-art in 1995 and is mirrored here unchanged as part of the Historic Archives – only email addresses are masked. The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can. Are you the author? Contact us to get your posts attributed, connected to your artist profile, or removed.

Report this message

Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.

Help classify this post