commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
This one has a better performance, as it is a one pass count with awk. For this script it might not matter, but for others it is a good optiomization.
There are 6 alternatives - vote for the best!
I'm working in a group project currently and annoyed at the lack of output by my teammates. Wanting hard metrics of how awesome I am and how awesome they aren't, I wrote this command up.
It will print a full repository listing of all files, remove the directories which confuse blame, run svn blame on each individual file, and tally the resulting line counts. It seems quite slow, depending on your repository location, because blame must hit the server for each individual file. You can remove the -R on the first part to print out the tallies for just the current directory.
make usable on OSX with filenames containing spaces. note: will still break if filenames contain newlines... possible, but who does that?!
If you can do better, submit your command here.
You must be signed in to comment.