$readn: Difference between revisions

From Scriptwiki
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
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 its 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 ==
== See Also ==
* [[$read]]
* [[$read]]
[[Category:File and Directory Identifiers]]

Latest revision as of 09:11, 2 July 2007

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

See Also