【发布时间】:2022-01-22 06:53:01
【问题描述】:
我正在将我在工作中使用的一些术语收集到一个文件中:
terms.txt
term 1
here is the definition
definition continues
other
I will explain it here
blablabla
random word
etc
etc
blabla
我想 grep 例如“术语”并提取定义,定义在下一行并以选项卡开头
我曾尝试使用 grep -iA 3 termhere terms.txt,但我想更准确一些。
【问题讨论】: