From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: exits funnel Newsgroups: gmane.emacs.help Subject: How can I customize this repetive edit? Date: Thu, 22 Jan 2004 12:36:23 -0800 (PST) Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <20040122203623.41723.qmail@web40506.mail.yahoo.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1074805480 29971 80.91.224.253 (22 Jan 2004 21:04:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2004 21:04:40 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 22 22:04:30 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ajm05-0004dM-00 for ; Thu, 22 Jan 2004 22:04:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AjlqM-0004NV-LD for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Jan 2004 15:54:26 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AjloV-0003ou-TJ for help-gnu-emacs@gnu.org; Thu, 22 Jan 2004 15:52:31 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1Ajliz-0001R2-HZ for help-gnu-emacs@gnu.org; Thu, 22 Jan 2004 15:47:20 -0500 Original-Received: from [66.218.78.123] (helo=web40506.mail.yahoo.com) by monty-python.gnu.org with smtp (Exim 4.24) id 1Ajla6-0007iC-Ov for help-gnu-emacs@gnu.org; Thu, 22 Jan 2004 15:37:38 -0500 Original-Received: from [204.249.220.103] by web40506.mail.yahoo.com via HTTP; Thu, 22 Jan 2004 12:36:23 PST Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:16284 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:16284 Hello, I have a text file which contains a coupld of hundred lines which look like this: >foo EAL_FOO I need them to look like this: > EAL_FOO="foo"; Note that '>' is not part of the line but included to denote the beginning of the line (ie, the foo in the first example is flush with the beginning of the line while line in the second example starts with two spaces. Also note the EAL_ is fixed but foo can take any value though the case of foo and FOO respectively will always adhere to the pattern in the example. I really don't want to make all these changes by hand. I'm pretty new to EMACS but it seems this should be doable (everything else is :) ). If anyone could point me in the right direction I'd really appreciate it. -exits __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/