【发布时间】:2013-08-24 09:53:01
【问题描述】:
我有一个类似以下格式的文件:
line one
line two <% word1 %> text <% word2 %>
line three <%word3%>
我想使用 awk、sed 等 linux shell 工具来获取
中引用的所有单词
结果应该是这样的
word1
word2
word3
感谢您的帮助。
我忘了说:我在嵌入式环境中。 grep 没有 -P 选项
【问题讨论】: