I'd like to access a file and replace every instance of "TERM=sun" to "TERM=vt100".
Normally i would just use the code
But unfortunately, larger words also match.
(For example "TERM=sun-color" gets changed to "TERM=vt100-color")
How would i force it so that it only changes an exact match?
Normally i would just use the code
Code:
sed -e 's/TERM=sun/vt100/' file
But unfortunately, larger words also match.
(For example "TERM=sun-color" gets changed to "TERM=vt100-color")
How would i force it so that it only changes an exact match?