To increment all the values inside a file, simply use a for loop as below,
=-=-=-=-=-=-
for i in `cat file.txt ` ; do replace $i $(($i+$no)) -- file.txt ; done
=-=-=-=-=-
Here, example for file is
cat file.txt
2
3
4....
$no -> Value by which the entries to be incremented.
=-=-=-=-=-=-
for i in `cat file.txt ` ; do replace $i $(($i+$no)) -- file.txt ; done
=-=-=-=-=-
Here, example for file is
cat file.txt
2
3
4....
$no -> Value by which the entries to be incremented.