#innum(), #inputnumber()
DESCRIPTION
returns the line number of the current input line;
0 if still in the begin section;
the line number of the last input line if in the end section
SYNOPSIS
#innum()
#inputnumber()
ARGUMENTS
none
EXAMPLES
#ifdef debug
rule
output $inlin
output "\#unit is $text(#innum())"
output "\$envhum is $envhum"
output =newline
#endifdef
end // drastic change in /etc/passwd file size
set #lines = #innum()
if #defined(%lines) && =deviated(lines, 20%)
output mail "the size of /etc/passwd has changed by >= 20%,
was $text(%lines) lines, is now $text(#lines)"
// set #crisis = #true()
endif
SEE ALSO
#eoi(), #endofinput()
#rule(), #rulenumber()
Numerical Functions
String Functions