Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #453

Re: Modifying a file

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder3.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!69.16.185.11.MISMATCH!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!news4.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Martin Wuerthner <spamtrap@mw-software.com>
Newsgroups comp.sys.acorn.programmer
Subject Re: Modifying a file
Date Sun, 19 Jun 2011 16:12:52 +0200
Organization MW Software
Lines 33
Message-ID <16efd2e551.martin@bach.planiverse.com> (permalink)
References <4390cbe551.cferris@cferris.freeuk.com>
X-Trace individual.net 8OEzcRu68gZYe13nZfJRVA2JOx7aJ3Opm5RqPCsh3/Ti28ccU6
X-Orig-Path bach.planiverse.com%martin
Cancel-Lock sha1:aWsU0MToh7iNXGa8upDVrRTL4mM=
X-Editor EmailEdit 6.00
User-Agent Messenger-Pro/6.00 (MsgServe/6.00) (RISC-OS/5.16) NewsHound/v1.50-32
Xref x330-a1.tempe.blueboxinc.net comp.sys.acorn.programmer:453

Show key headers only | View raw


In message <4390cbe551.cferris@cferris.freeuk.com>
          cferris@freeRemoveuk.com.invalid wrote:

> Hi
> Am trying out the assembler '!ASM' is there a way of Globally changing
> the beginning of a line ie add a colon to the end of the label?
> *******
> label

> to

> label:
> *******

> with !Zap or another program.

There are loads of ways of doing this, e.g., via the command line 
using perl or awk. In the desktop just use the regular expression 
syntax in your preferred editor.

In Zap, for instance, you can add a colon to every word (consisting of 
letters, numbers, underscore and bar characters) on its own at the 
start of a line with nothing else on that line using the following:

Search:\<\{\[a-zA-Z0-9_|]\[a-zA-Z0-9_|]\*\}\n
Replace:&1:\n

-- 
Martin
---------------------------------------------------------------------
Martin Wuerthner         MW Software      http://www.mw-software.com/
        RISC OS Software for Design, Printing and Publishing
---------------------------------------------------------------------

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Modifying a file cferris@freeRemoveuk.com.invalid - 2011-06-19 13:52 +0100
  Re: Modifying a file Martin Wuerthner <spamtrap@mw-software.com> - 2011-06-19 16:12 +0200
    Re: Modifying a file Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-06-19 18:11 +0200
      Re: Modifying a file Alan Wrigley <spamhater@keepyourfilthyspamtoyourself.co.uk> - 2011-06-19 17:57 +0100
      Re: Modifying a file Matthew Phillips <spam2011m@yahoo.co.uk> - 2011-06-19 18:53 +0100
        Re: Modifying a file Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-06-19 23:08 +0200
        Re: Modifying a file "Ste (news)" <steve@revi11.plus.com> - 2011-06-26 21:01 +0100
      Re: Modifying a file Jeremy Nicoll - news posts <jn.nntp.scrap007@wingsandbeaks.org.uk> - 2011-06-20 00:04 +0100
    Re: Modifying a file cferris@freeRemoveuk.com.invalid - 2011-06-20 10:54 +0100
      Re: Modifying a file Martin Wuerthner <spamtrap@mw-software.com> - 2011-06-20 23:01 +0200
  Re: Modifying a file Nick Roberts <tigger@orpheusinternet.co.uk> - 2011-06-19 16:39 +0100
    Re: Modifying a file cferris@freeRemoveuk.com.invalid - 2011-06-20 11:28 +0100
      Re: Modifying a file Nick Roberts <tigger@orpheusinternet.co.uk> - 2011-06-20 20:40 +0100
        Re: Modifying a file Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-06-21 07:05 +0200
          Re: Modifying a file cferris@freeRemoveuk.com.invalid - 2011-06-21 10:53 +0100
            Re: Modifying a file Nick Roberts <tigger@orpheusinternet.co.uk> - 2011-06-21 20:03 +0100
              Re: Modifying a file Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-06-22 19:27 +0200
                Re: Modifying a file Alan Adams <alan@adamshome.org.uk> - 2011-06-22 22:33 +0100
                Re: Modifying a file Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-06-23 17:50 +0200
                Re: Modifying a file jgharston <jgh@arcade.demon.co.uk> - 2011-07-04 13:00 -0700
  Re: Modifying a file JussiJ <jussij@zeusedit.com> - 2011-06-20 18:55 -0700

csiph-web