From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5167 invoked by alias); 7 Jan 2003 15:12:02 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 4812 invoked from network); 7 Jan 2003 15:10:45 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by 209.249.29.67 with SMTP; 7 Jan 2003 15:10:45 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id A2ABA3CC4; Tue, 7 Jan 2003 10:10:36 -0500 (EST) Message-ID: <3E1AEDEC.1040702@redhat.com> Date: Tue, 07 Jan 2003 15:12:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.1) Gecko/20021211 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Michael Elizabeth Chastain Cc: gdb-patches@sources.redhat.com Subject: Re: [patch/rfc] post-process the `maint print architecture' from gdb_mbuild.sh References: <200301022004.h02K4WT31218@duracef.shout.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-01/txt/msg00275.txt.bz2 >> Thoughts? > > > The idea sounds good to me. > > Instead of ed'ing Gdb.log, how about just naming the first file > Gdb.out or Gdb-raw.log, and then sed'ing into Gdb.log. I can save the unedited output. To make sed worthwhile, I'd need to construct a sed script that did all substitutions in a single pass. Otherwize the script ends up repeating: sed -e ... < input > output mv output input which is equivalent to ed. That, I think, is something for a rainy day. Andrew