--- Kaz Kylheku <[EMAIL PROTECTED]> wrote: > That's terrible! What if the resulting command line > violates the > systems's environment passing limit? Of course, you > want: > > find . -name '*.java' -print | xargs javac > > hopefully, none of the names contain spaces and > newlines, but I wouldn't > put any such stupidity past Java programmers, so > better use GNU tools: > > find . -name '*.java' -print0 | xargs -0 javac
Keep in mind that since xargs has a size limit, you may wind up doing a little more recompilation than necessary. I prefer the back quote method under a shell with no command length limitation and forbidding spaces and special characters in file names. Noel __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com _______________________________________________ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
