提取含有特定开头结尾的段落,并输出到文本,代码用sed应该怎么写

2025-04-08 11:06:58
推荐回答(1个)
回答1:

sed -n '/^蒹葭/{:begin N;/ed$/{p;b};b begin}' 旧文件.txt > 新文件.txt