GREP using TPIPE

samintz

Scott Mintz
May 20, 2008
1,555
26
Solon, OH, USA
Does anyone (Vince?) have a simple alias that does a grep search using TPIPE? I find that I have to wade through the tpipe help every time I want to use it due to its arcane syntax.

Using FFIND was easy. I only needed to concern myself with the /s, /v, and /t or /e switches.

So ideally, I'd like to do the equivalent of:
Code:
ffind /s /v /t"sometext" *.[ch]pp
 
May 20, 2008
12,167
133
Syracuse, NY, USA
Here's a very simple one.
Code:
alias grp `tpipe /input=%1 /grep=3,0,0,1,0,0,0,0,%2`

This seems to work if you want wildcards and recursion.
Code:
alias `grp do f in /s /a:-d %1 (tpipe /input=%@quote[%f] /grep=3,0,0,1,0,0,0,0,%2)`