0
votes

I have a file and sample data is below

23
48
90
99
23
21

now I need to add 5 for every record and output should be as below

28
53
95
104
28
26

I have used GETfile processor in nifi and next I have taken replace text value but I am unable to find a solution can any one help me with this

my replace text processor values enter image description here

1

1 Answers

2
votes

Once you capture the value then use Nifi expression language to add 5.

${'$1':toNumber():plus(5)}

Refer this link for more details regards to similar thread.