From owner-freebsd-questions@FreeBSD.ORG Mon Mar 15 11:54:32 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB90A16A4CE for ; Mon, 15 Mar 2004 11:54:32 -0800 (PST) Received: from therub.org (pantheon-ws-13.direct.hickorytech.net [216.114.200.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD73843D2F for ; Mon, 15 Mar 2004 11:54:31 -0800 (PST) (envelope-from drue@therub.org) Received: from drue by therub.org with local (Exim 3.35 #1 (Debian)) id 1B2yAK-0000FE-00; Mon, 15 Mar 2004 13:54:24 -0600 Date: Mon, 15 Mar 2004 13:54:23 -0600 To: "Steven N. Fettig" Message-ID: <20040315195423.GP30555@therub.org> References: <4054DD10.5060504@stevenfettig.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4054DD10.5060504@stevenfettig.com> User-Agent: Mutt/1.3.28i From: Dan Rue cc: freebsd-questions@freebsd.org Subject: Re: [OT] sed question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Mar 2004 19:54:33 -0000 On Sun, Mar 14, 2004 at 04:30:40PM -0600, Steven N. Fettig wrote: > Sorry for posting an off-topic question to the list, but this is > somethin that has been driving me nuts for weeks now and I can't figure > it out. I want to pass a text file through sed that replaces all > whitespaces with a carriage return. I.e., if I have the file > my_test_text_document.txt that is a few paragraphs of writing, I want to > take the following input: how about using ctrl-v to get a literal - if you do ctrl-v, the next keystroke will be input in literally. so, do sed 's/ //' When I do that, it types in a "^M". That method also works well for using sed to insert tabs. Dan > > Steve Fettig > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"