summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
Diffstat (limited to 'txr.1')
-rw-r--r--txr.112
1 files changed, 7 insertions, 5 deletions
diff --git a/txr.1 b/txr.1
index 223f464d..b6445527 100644
--- a/txr.1
+++ b/txr.1
@@ -2043,15 +2043,17 @@ levels of nesting such that elements are at the appropriate depth.
.SS The Cat Directive
The @(cat) directive converts a list variable into a single
-piece of text. Optionally, a separating piece of text can be inserted
-in between the elements. This piece is written to the right of
-the @(cat) directive, and spans to the end of the line. It may
-contain variable substitutions.
+piece of text. The syntax is:
+
+ @(cat VAR [ SEP ])
+
+The SEP argument specifies a separating piece of text. If no separator
+is specified, then a single space is used.
Example:
pattern: @(coll)@{a /[^ ]+/}@(end)
- @(cat a):
+ @(cat a ":")
data: 1 2 3 4 5
result: a="1:2:3:4:5"