From owner-freebsd-questions Tue Aug 1 10:58:26 2000 Delivered-To: freebsd-questions@freebsd.org Received: from relay.lppi.com (relay.lppi.com [208.49.169.66]) by hub.freebsd.org (Postfix) with ESMTP id D24F737C1BC for ; Tue, 1 Aug 2000 10:58:23 -0700 (PDT) (envelope-from lew@lppi.com) Date: Tue, 1 Aug 2000 10:58:24 -0700 (PDT) Message-Id: <200008011758.KAA10340@relay.lppi.com> From: Lew Payne To: freebsd-questions@freebsd.org Subject: Re: vi In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver 1.23 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 01 Aug 2000, Adam Hefetz wrote: > > Every time I open a text file on vi, > I get '^M' in the end of each line. > How can I get these signs of other then > deleting them manually? perl -pi -e "s:^V^M::g" where ^V and ^M are actually the control chars, not the meta-chars! or, you can do any of these (non-meta char rule still applies); cat | tr -d "^V^M" > sed -e "s/^V^M//" > -- and in vi you can: 1) hit the ESC key 2) :%s/^V^M// --- Lew Payne Publishing, Inc. Dunn & Bradstreet listed 994 San Antonio Road DUNS # 055037852 Palo Alto, CA 94303 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message