I have a flow that reads a txt file. Output is a complete list of records, which I would like to parse.
I tried several of the available parsers, the csv parser works, but returns each record as a separate output.
Is there a smarter way to do this?
You could try using an exec node to run 'tail'.
In fact there is a Tail node I believe node-red-node-tail
You can set the csv node to return an array if you wish... or use a join node after it to rejoin each line... depends what you wish to achieve.
Solved it: parse file output into an array, then take last five entries. Simple!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.