Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

GREP using TPIPE

samintz

Scott Mintz
May
1,582
27
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
 
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)`
 
Back
Top