# - Print count register.

Syntax:

#

Description:

# displays the contents of the count register. The count register is affected by a number of commands.

To give an example of how # can be used, we can print the number of characters on a line (excluding the new-line character) with the instruction

s/./&/#

The command

*s/./&/#

prints the number of characters in the entire buffer (excluding the new-lines).

Copyright © 1998, Thinkage Ltd.