• countLines ?-i? str
Return the number of lines contained in a string. This command handles the
LF, CR and CRLF symbols correctly, as well as the following Unicode
characters: U+0085 (NEXT LINE), U+2028 (LINE SEPARATOR) and
U+2029 (PARAGRAPH SEPARATOR).
If the -i option is specified, the
command ignores a possible trailing newline symbol.