I need to process large amount of data from stdout, but I need only several lines from them.
Let's say I want to append some data from line beginning with Label 3
to the file F3.csv
, and some data from line beginning with Label 5
to the file F5.csv
.
Example input - from STDOUT
Label 1 25
Label 2 60
Label 3 70
Label 4 95
Label 5 100
Output
Append 70
to F3.csv
and 100
to F5.csv
.
I'd like to know if it's possible to do this and if it is, then how.
Do you know any way?