[問題] grep 可以像 Perl 那樣印 $1 嗎?
由於在嵌入式環境下沒有 Perl
想用 grep 來做 RegExp 比對
我查到的是 grep 可以下 -o 只印 matched pattern
但還是沒有 $1 的部份
有人知道嗎...或用其它 tool
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 111.249.188.103
→
10/19 20:21, , 1F
10/19 20:21, 1F
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):