streamlet-examples/lines_count
branchv_0
changeset 50 22ed5647b235
parent 49 ab48ad4ecb91
child 70 018e2609f5bb
equal deleted inserted replaced
49:ab48ad4ecb91 50:22ed5647b235
    19 # This streamlet provides a single attribute: number of lines of given file
    19 # This streamlet provides a single attribute: number of lines of given file
    20 # Standard wc -l is used to count the lines.
    20 # Standard wc -l is used to count the lines.
    21 # Directories are reported a 0 lines and with a null flag (will be supported in further Relational pipes versions).
    21 # Directories are reported a 0 lines and with a null flag (will be supported in further Relational pipes versions).
    22 
    22 
    23 
    23 
    24 . "$(dirname "$0")/streamlet-common.sh"
    24 . "$(dirname "$(realpath "$0")")/streamlet-common.sh"
    25 
    25 
    26 processMessage_WAITING_FOR_OUTPUT_ATTRIBUTES_METADATA() {
    26 processMessage_WAITING_FOR_OUTPUT_ATTRIBUTES_METADATA() {
    27 	send OUTPUT_ATTRIBUTE_METADATA "${outputAttributeAliases[0]-lines_count}"    "integer"
    27 	send OUTPUT_ATTRIBUTE_METADATA "${outputAttributeAliases[0]-lines_count}"    "integer"
    28 	send WAITING_FOR_INPUT_ATTRIBUTES
    28 	send WAITING_FOR_INPUT_ATTRIBUTES
    29 }
    29 }