0

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

Rahul Varma
  • 550
  • 5
  • 23

1 Answers1

2

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.

notNull
  • 30,258
  • 4
  • 35
  • 50