Difference between revisions of "$readn"

From Scriptwiki
Jump to: navigation, search
m
Line 1: Line 1:
 
This returns the line number that [[$read]]() previously returned.
 
This returns the line number that [[$read]]() previously returned.
 
  $readn
 
  $readn
If $readn returns ''0'' $read() failed it didn't match any content.
+
If $readn returns ''0'' $read() failed to match any content.
 
== Examples ==
 
== Examples ==
 
  echo -ag [[DollarPlus|$+]](",$read(Example.txt),") is on line number $readn
 
  echo -ag [[DollarPlus|$+]](",$read(Example.txt),") is on line number $readn
 
== Also See ==
 
== Also See ==
 
* [[$read]]
 
* [[$read]]

Revision as of 23:52, 13 October 2005

This returns the line number that $read() previously returned.

$readn

If $readn returns 0 $read() failed to match any content.

Examples

echo -ag $+(",$read(Example.txt),") is on line number $readn

Also See