haven't been using linux for a while. remember I used to do search and replace all the time with :s/searchString/replaceString/g

now I have "pattern not found: " even though pattern I was trying to search/replace was definitly there.


any idea? did i forget anything?

It might help to show the pattern used and the text you think matched that pattern.

ot found: " even though pattern I was trying to search/replace was definit

I hope you are talking about vim here. you missed "%"

:%s/searchstring/replacestring/g

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.