I search a large js tree frequently for certain Tokens. Consider you were looking for all of the '.prototype' tokens in your js files. I would do something like this:
find . -name "*.js" |xargs grep "\.prototype"
Of coarse this produces a boat-load of hits on minified vendor libs. Obscuring the real results I am after. i.e:
this.animate(b,a,c,d)}}),p.speed=function(a,b,c)
{var d=a&&typeof a=="object"?p.extend({},a{com
plete:c||!c&&b||p.isFunction(a)&&a,duration:a,eas
ing:c&&b||b&&!p.isFunction(b)&&b};d.duration=p.fx.of
f?0:typeof d.duration=="number"?d.duration:d.durat
ion in p.fx.speedsp.fx.speeds[d.duration]:p.fx.speeds._defa
ult;if(d.queue==null||d.queue===!0)d.queue="fx";return
results like that Ad nauseam.
So how can I detect and 'skip' the minified libs?
Note: I usually store both the minified and non-minified versions of the vendor libs so I will get the hits in the vendor libs that I am looking for.
Is there some utility out there that does it?