Purpose, Argument, Streams, Usage, Examples, Related
┌─RECORDS─────┐ >>──COUNT──┼─────────────┼───────────────────────────────────────────────────────────>< │ ┌─<───────┐ │ └─┼─BYTES───┼─┘ ├─CHARS───┤ ├─WORDS───┤ ├─RECORDS─┤ ├─LINES───┤ ├─MINline─┤ ├─MAXline─┤ ├─ALL─────┤ └─*───────┘
Use the COUNT stage to count bytes, space-delimited character strings or records. You can also use COUNT to return the length of the shortest or longest record. COUNT reads records from its primary input stream and counts each specified item. If its secondary output stream is not connected, COUNT writes a single record containing the count information to its primary output stream and discards the records from its primary input stream. If both its primary and secondary output streams are connected, COUNT copies its primary input stream records to its primary output stream and writes a single record containing the count information to its secondary output stream.
bytes words records minimum-record-length maximum-record-length
**** Top of file **** Address Rxpipe
'pipe literal /and the clocks were striking thirteen/', '| literal /It was a bright cold day in April/', '| count all', '| console'
Exit 0 **** End of file ****
output:
70 14 2 33 37