Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要使用 sed 将 3 个以 og 结尾的字母单词替换为青蛙这个词。我认为这会起作用:
sed 's/?og/frog/' filename
但它没有?
这可能对你有用。
sed 's/\<.og\>/frog/g' filename . matches one character \< beginning of word anchor \> end of word anchor