【发布时间】:2011-05-14 19:29:33
【问题描述】:
This question 指定-P 允许 GNU grep 来 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
而且似乎没有替代您自己的grep 程序的选项。我唯一的选择是吞下整个内容然后在结果上使用 GNU grep 吗?
【问题讨论】:
-
我想知道
git grep '\\t'是否可行。 -
安全标签到空间质量转换:stackoverflow.com/questions/11094383/…