IntroductionIntroduction
  Publishing web pagesPublishing web pages
  RXMLRXML
  Information tagsInformation tags
  String tagsString tags
  Variable tagsVariable tags
  URL tagsURL tags
  If tagsIf tags
  Graphics tagsGraphics tags
  Database tagsDatabase tags
  LDAPLDAP
  Programming tagsProgramming tags
    <catch>catch<catch>catch
    <throw>throw<throw>throw
    <cgi>cgi<cgi>cgi
    <crypt>crypt<crypt>crypt
    <debug>debug<debug>debug
    <default>default<default>default
    <for>for<for>for
    <gauge>gauge<gauge>gauge
    <nooutput>nooutput<nooutput>nooutput
    <noparse>noparse<noparse>noparse
    <pike>pike<pike>pike
    <random>random<random>random
    <realfile>realfile<realfile>realfile
    <scope>scope<scope>scope
    <sed>sed<sed>sed
    <strlen>strlen<strlen>strlen
    <trace>trace<trace>trace
    <vfs>vfs<vfs>vfs
    <wizard>wizard<wizard>wizard
  SSI tagsSSI tags
  Image mapsImage maps
  IntraSeekIntraSeek
  LogViewLogView
  TemplatesTemplates
  NavigationNavigation
  SiteBuilder tagsSiteBuilder tags
  Supports systemSupports system
  SecuritySecurity
  AppendixAppendix
 
<sed> </> SED module

 

Emulates a subset of sed operations in RXML. (Sed is the Unix "Stream EDitor" program which edits a stream of text according to a set of instructions.)

append

chars

lines

prepend

split=<linesplit>

suppress

Syntax :

<sed [suppress] [lines] [chars] [split=<linesplit>]
      [append] [prepend]>
 <e [rxml]>edit command</e>
 <raw>raw, unparsed data</raw>
 <rxml>data run in rxml parser before edited</rxml>
 <source variable|cookie=name [rxml]>
 <destination variable|cookie=name>
 </sed>

edit commands supported:
 <firstline>,<lastline><edit command>
    ^^ numeral (17) ^^
       or relative (+17, -17)
       or a search regexp (/regexp/)
       or multiple (17/regexp//regexp/+2)

 D                  - delete first line in space
 G                  - insert hold space
 H                  - append current space to hold space
 P                  - print current data
 a<string>          - insert
 c<string>          - change current space
 d                  - delete current space
 h                  - copy current space to hold space
 i<string>          - print string
 l                  - print current space
 p                  - print first line in data
 q                  - quit evaluating
 s/regexp/with/x    - replace
 y/chars/chars/     - replace chars

 where line is numeral, first line==1

 

Attributes

append

chars

lines

prepend

split=<linesplit>

suppress

Syntax :

<sed [suppress] [lines] [chars] [split=<linesplit>]
      [append] [prepend]>
 <e [rxml]>edit command</e>
 <raw>raw, unparsed data</raw>
 <rxml>data run in rxml parser before edited</rxml>
 <source variable|cookie=name [rxml]>
 <destination variable|cookie=name>
 </sed>

edit commands supported:
 <firstline>,<lastline><edit command>
    ^^ numeral (17) ^^
       or relative (+17, -17)
       or a search regexp (/regexp/)
       or multiple (17/regexp//regexp/+2)

 D                  - delete first line in space
 G                  - insert hold space
 H                  - append current space to hold space
 P                  - print current data
 a<string>          - insert
 c<string>          - change current space
 d                  - delete current space
 h                  - copy current space to hold space
 i<string>          - print string
 l                  - print current space
 p                  - print first line in data
 q                  - quit evaluating
 s/regexp/with/x    - replace
 y/chars/chars/     - replace chars

 where line is numeral, first line==1

 

Example