I was wondering is there any way to search and increase the values between the 2nd tilde symbol and the 3rd tilde symbol in each line of a txt file. Maybe vi can do this?For example, i have a test.txt file, and 2 lines in it:A~Test1~9463~testAB~Test2~4825~testBAnd can be changed to:A~Test1~8352~testAB~Test2~3714~testB
search and increase the values between the second tilde symbol and the 3rd tilde symbol in each line of a txt file
linux;bash;shell;shell script;vi