我想從包含一些字符串的行清理我的日誌文件。該字符串是在一個文件和由隨機[鍵盤]字符的[肯定也*,+等] 好像grep的不*的精確匹配:fgrep匹配文字「*」
grep "abc*" logs :gives a matchine line
blah_blah """abc*""" duh_duh
However when I read it off the file it doesnt work with fgrep:
cat file:
"abc*"
fgrep -f file logs => Matches nothing
我想fgrep一樣是相同的grep + F [grep -f]。有沒有我可以使用fgrep來實現這一目標的標誌?
謝謝!
它也適用於我,fgrep 2.9 – 2012-03-22 19:16:20