This question指定-P
允许GNU的grep到grep的标签是否有可能git grep的标签?
grep -P '\t' config/file.txt
然而,使用git grep
,我不知道如何到grep一个标签:
git grep '\t' # Looks for files with the letter "t" instead
git grep -P '\t' # Invalid option
git grep -E '\t' # Does the same as without the -E
还有没有按” t似乎是替代您自己的grep
程序的一种选择。我唯一的选择是啜食整个内容,然后对结果使用GNU grep?
我不知道`git grep'\\ t'`是否可以工作。 – MatrixFrog 2010-11-27 18:49:50
@MatrixFrog No. – 2015-01-02 04:34:31