My text file consist of 5 columns. Based on the user input want to search only in 2nd, 3rd, 4th and 5th column and replace it.
for example
oldstring="Old_word"
newstring="New_word"
So want to find all the exact match of oldstring and replace the same with newstring. Column one should be untouched even if there is a match.
Browsed and found that awk will do but I am able to change in one particular column.
bash script