Skip to content

Commit

Permalink
Update description of builtin variables.
Browse files Browse the repository at this point in the history
Remove description of "AWK-mode" as it is now the only mode. Update the
description of W as it is now a split of R.
  • Loading branch information
unbrice committed May 24, 2015
1 parent a7b1af7 commit 38d8b51
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions docs/variables.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
Convenience variables
=====================

Follows a list of all the functions and variables you can use in Awk-like mode.

.. warning::

These variables are available in Awk-like mode, that is when ``--begin``/``-b``, ``--each-line``/``-l``, ``--end``/``-e`` have been passed.
It is enough to pass any of the above to get them so ``py1 -b 'P(42)'`` works.
Follows a list of the builtin functions and variables.


Per-line
Expand All @@ -28,7 +23,7 @@ Per-line
- The current line number
- :py:class:`int`
* - W
- Words of L split on WS or WRE
- Words of R split on WS or WRE
- :py:class:`str`
* - NW
- Length of W
Expand Down

0 comments on commit 38d8b51

Please sign in to comment.