I have a string like this :
test:blabla
And with sed, I want to replace what’s after the ‘:’ with something else.
I can manage to replace a word, but not the one after the ‘:’. I searched on the internet for the answer, but I didn’t found anything.
Any help ?
Use:
sed 's/:.*/:replaceword/'Or for the situation
test test:blabla testwhere you only want to replace the word following:usesed 's/:[^ ]*/:replaceword/':