Category:TXR: Difference between revisions

→‎Simple Query: Obsolete, dangling text removed.
(→‎Simple Query: Revised example: using built-in math that TXR now has.)
(→‎Simple Query: Obsolete, dangling text removed.)
Line 82:
Swap: 1048568 18200 1030368
</pre>
 
Arithmetic is not implemented in TXR as of version 035. The above example simply continues the pattern matching across invocations of echo to borrow the shell to do math. The command
 
<pre>@(next `!echo $(( @TOTAL - @FREE ))`)
@USED
</pre>
 
means, "Next, please switch to scanning the output of this echo command with some variables substituted in. Then capture entire first line of this command into the USED variable."
 
== Complex Query ==
543

edits