标签: bash grep cygwin gawk gnuwin32
好吧所以我知道grep -rhi,如果发现了字符串,则会提取该行,但我想复制整个文件,例如,
file.txt>
isexample #new iesameplxpele ieamama #new
现在如果我使用grep -rhi“#new”,它只会提取
isexample #new ieamama #new
我想要文件中的所有内容,包括
iesameplxpele
我该怎么做?
当然.txt文件必须在其中一行中包含#new。