This question specifies that -P
allows GNU grep to grep for a tab
grep -P '\t' config/file.txt
However, using git grep
, I can't work out how to grep for a tab:
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
And there doesn't seem to be an option for substituting in your own grep
program. Is my only option to slurp the entire contents and then use GNU grep on the results?