show all project code (a find-git-xargs example)

The following command finds all your project’s Javascript files that aren’t installed via NPM. It then does a “git blame” so you can see who wrote which bits of code, and how old the code is.


find . -path ./node_modules -prune -o -name ‘*.js’ | xargs -n1 git blame –date=short —

If you’re using OSX, install the GNU versions of the Unix tools


gfind . -path ./node_modules -prune -o -name ‘*.js’ | gxargs -n1 git blame –date=short —

Those who don’t understand Unix will be doomed to reimplement it. Poorly. 🙂