GREP using TPIPE

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

samintz

Scott Mintz
May 20, 2008
1,229
11
Solon, OH, USA
#1
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
 
#2
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)`