📜  sed 全部替换,直到匹配到行 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:50.682000             🧑  作者: Mango

代码示例1
echo remove_staystay... | sed 's/.*\(stay.*\)/\1/g'
stay    #remove all but from last ocurrence match until end