Date: Mon, 15 Mar 2004 13:54:23 -0600 From: Dan Rue <drue@therub.org> To: "Steven N. Fettig" <freebsd@stevenfettig.com> Cc: freebsd-questions@freebsd.org Subject: Re: [OT] sed question Message-ID: <20040315195423.GP30555@therub.org> In-Reply-To: <4054DD10.5060504@stevenfettig.com> References: <4054DD10.5060504@stevenfettig.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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/ /<ctrl-v><enter>/' 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040315195423.GP30555>