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:46AM (#3257561)
You can skip xargs altogether with the plus sign instead of semicolon.

    -exec utility [argument ...] {} +
            Same as -exec, except that ``{}'' is replaced with as many path-
            names as possible for each invocation of utility.  This behaviour
            is similar to that of xargs(1).
The problem with just wc -l *.java is that it don't recursive directory.
Re:What's the one Linux command you wish you knew years ago? by jedbrown on Sunday November 20, 2011 @02:53AM (#3257573)
With bash-4 or zsh

  wc -l **/*.java