---
name: "wml_p6_asubst"
section: "1"
platform: "linux"
package: "wml"
version: "2.32.0~ds1-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/wml_p6_asubst"
---

# wml\_p6\_asubst(1)

Area Substitution

## NAME

asubst - Area Substitution

## SYNOPSIS

**asubst** \[**-o** *outputfile*\] \[**-v**\] \[*inputfile*\]

## DESCRIPTION

The *asubst* program reads *inputfile* or from `"stdin"` and performs the following action: Characters and substrings are substituted according to Perl-like substitution commands enclosed by surrounding area delimiters.  The substitution commands recognized are

```
   [[s/pattern/string/options]]
   [[tr/input/output/options]]
```

and the areas are defined by blocks delimited via

```
  {: ... :}
```

## EXAMPLE

```
  {: [[s/X/&auml;/]] [[s/X/&uuml;/]]
  Foo Bar Baz Quux with Umlauts X and X
  :}
```

## OPTIONS

- **-o** *outputfile*

  This redirects the output to *outputfile*. Usually the output will be send to `"stdout"` if no such option is specified or *outputfile* is "`"-"`".

- **-v**

  This sets verbose mode where some processing information will be given on the console.

## AUTHOR

```
 Ralf S. Engelschall
 rse@engelschall.com
 www.engelschall.com
```
