我想从包含一些字符串的行清理我的日志文件。该字符串是在一个文件和由随机[键盘]字符的[肯定也*,+等] 好像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