I've been trying to find instances of the t() function in source code on the dev branch using git. Came up with the following line
git branch -a | tr -d \* | sed '/->/d' | xargs git grep -E -e "/(t\(\').*\'\)/sU" Here the search is done on all branches, but still I get no results from the query. Simple search queries ( git grep "t('" ) work perfectly fine, but is not usable for this purpose. ExtendedRexp is enabled from git config.
Anybody had similar issues?

xargs git grep, shouldn't it be justxargs grep?git grepis used to search for tracked files in the GitHub repository./…/sUis strange, it seems you confusegrepandsed. What exactly you're trying to search? What the "flags"sUare supposed to do?Uis a PHP/PCRE modifier that switches greediness.grepwith POSIX ERE does not support lazy/possessive quantifiers, it only supprots greedy ones.sis a modifier that does not work withgrepsincegrepworks on a per line basis, andsmodifier makes a.in a PCRE regex match line break chars that it does not match by default.