I need to increment the numbers form a file using awk/sed/... .
file:
step0=action_a
step1=action_b
step2=action_c
output:
step1=action_a
step2=action_b
step3=action_c
I've tried with:
awk '/step/{ $2=$2+1 }' file
but the step numbers are not incremented.