From owner-freebsd-questions@FreeBSD.ORG Fri Oct 27 23:21:11 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 AED9A16A415 for ; Fri, 27 Oct 2006 23:21:11 +0000 (UTC) (envelope-from admin2@enabled.com) Received: from typhoon.enabled.com (typhoon.enabled.com [216.218.220.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44B8043D7D for ; Fri, 27 Oct 2006 23:21:06 +0000 (GMT) (envelope-from admin2@enabled.com) Received: from [172.24.241.11] (natint3.juniper.net [66.129.224.36]) (authenticated bits=0) by typhoon.enabled.com (8.13.8/8.13.8) with ESMTP id k9RNL5eg074164 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 27 Oct 2006 16:21:06 -0700 (PDT) (envelope-from admin2@enabled.com) Message-ID: <45429451.3040706@enabled.com> Date: Fri, 27 Oct 2006 16:20:49 -0700 From: Noah User-Agent: Thunderbird 1.5.0.7 (Macintosh/20060909) MIME-Version: 1.0 To: "Peter A. Giessel" References: <45425D61.6030209@enabled.com> <4542607E.8020101@mac.com> In-Reply-To: <4542607E.8020101@mac.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: replacing ^M with emacs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Oct 2006 23:21:11 -0000 this is the best answer. Hits it right on the head of what I want. What if I want the character to replace the ^M with a new line what do I enter in the replace field? cheers, Noah Peter A. Giessel wrote: > On 2006/10/27 11:26, Noah seems to have typed: > >> How might I get emacs to search replace >> > > Put a mark right before the character (control-space) move to right > after the character and cut the character (control-w). Move to the top > of the document (esc-<) and start a "query replace" (esc-%). Yank in > the character that you previously cut (control-y). Hit return (or enter) > type in the character that you want to replace the ^M with, hit return > (or enter) again. Enter "y" or "n" for each case... >