Hi All,
In I text file I had lot of columns as below and with different id's and I need to replace with only one "vreddy". Please let me know the command for it.
CHANGE_USERID="bbhaska"
CHANGE_USERID="skanaujeg"
Hi All,
In I text file I had lot of columns as below and with different id's and I need to replace with only one "vreddy". Please let me know the command for it.
CHANGE_USERID="bbhaska"
CHANGE_USERID="skanaujeg"
What is a 'vreddy'?
And what have you tried? This would appear to be a simple substitution problem.
A simple text editor might help.
Like so?
sed '/CHANGE_USERID/s/"[^"]*"/"vreddy"/' file
Output:
CHANGE_USERID="vreddy"
CHANGE_USERID="vreddy"