News for hackers. Stuff that matters.
Re:What's the one Linux command you wish you knew years ago? by sirn on Sunday November 20, 2011 @02:43AM (#3257556)
Without xargs:

    find . -iname '*.java' -exec cat {} + |wc -l
But if you do that, why not just:

    find . -iname '*.java' -exec wc -l {} +
Which will also print out output of wc -l for each files along with total lines.

There are no comments on this comment yet.