📜  sed remove 直到第一次出现 - Shell-Bash 代码示例

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

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