3 ms·
In case anyone is interested in checking it out, you can download the source here: ftp://mirrors.kernel.org/gnu/grep/
by TheAceOfHearts 13y ago
In case anyone is interested in checking it out, you can download the source here: ftp://mirrors.kernel.org/gnu/grep/
- lelf 13y agohttp://savannah.gnu.org/git/?group=grep http://savannah.gnu.org/git/?group=grep
- eru 13y agoYou will need some gnu common libraries. I tried building it from scratch recently, as a first step for implementing an extension idea, but didn't succeed. (If anyone is interested, I want to add more operators, like intersection or difference of regular languages.)
- pmiller2 13y agoThe shell, combined with grep already implements these intersection and difference operators. For intersection, all you have to do is pipe into a second grep [1]; for difference, you pipe into a second grep with -v [2]. [1] Intersection: grep regex1 file1 | grep regex2 [2] Difference: grep regex1 file1 | grep -v regex2
- eru 13y agoYes, you can do that. But you can only do that at the top level of your expression (ie outside the expression), not intra regular expression.