Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #19806
| Received | by 10.66.75.230 with SMTP id f6mr2817200paw.25.1353299705685; Sun, 18 Nov 2012 20:35:05 -0800 (PST) |
|---|---|
| Received | by 10.50.5.174 with SMTP id t14mr1870498igt.11.1353299705620; Sun, 18 Nov 2012 20:35:05 -0800 (PST) |
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!kr7no1196734pbb.0!news-out.google.com!6ni93808pbd.1!nntp.google.com!kt20no869408pbb.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | comp.lang.java.programmer |
| Date | Sun, 18 Nov 2012 20:35:05 -0800 (PST) |
| In-Reply-To | <k8c902$rjs$1@news.m-online.net> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=173.164.137.214; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T |
| NNTP-Posting-Host | 173.164.137.214 |
| References | <k8avks$nl8$1@news.m-online.net> <agsge8F5o27U1@mid.individual.net> <k8c902$rjs$1@news.m-online.net> |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <93022fca-0e68-4b8a-aceb-ea6042a7f4a5@googlegroups.com> (permalink) |
| Subject | Re: ant task to compute lines of code |
| From | Lew <lewbloch@gmail.com> |
| Injection-Date | Mon, 19 Nov 2012 04:35:05 +0000 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Xref | csiph.com comp.lang.java.programmer:19806 |
Show key headers only | View raw
Laura Schmidt wrote:
> Sorry, this was a copy/paste error.
> My ant task approach cats all the files:
You could exec "wc -l $(find src -name *.java)".
Not sure what the attraction is of "cat" when "wc"
takes files as arguments.
$ wc --help
Usage: wc [OPTION]... [FILE]...
or: wc [OPTION]... --files0-from=F
Print newline, word, and byte counts for each FILE, and a total line if
more than one FILE is specified. With no FILE, or when FILE is -,
read standard input. A word is a non-zero-length sequence of characters
delimited by white space.
The options below may be used to select which counts are printed, always in
the following order: newline, word, character, byte, maximum line length.
-c, --bytes print the byte counts
-m, --chars print the character counts
-l, --lines print the newline counts
--files0-from=F read input from the files specified by
NUL-terminated names in file F;
If F is - then read names from standard input
-L, --max-line-length print the length of the longest line
-w, --words print the word counts
--help display this help and exit
--version output version information and exit
--
Lew
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
ant task to compute lines of code Laura Schmidt <ls@mailinator.com> - 2012-11-18 16:43 +0100
Re: ant task to compute lines of code "John B. Matthews" <nospam@nospam.invalid> - 2012-11-18 11:19 -0500
Re: ant task to compute lines of code Roedy Green <see_website@mindprod.com.invalid> - 2012-11-19 19:27 -0800
Re: ant task to compute lines of code Robert Klemme <shortcutter@googlemail.com> - 2012-11-18 17:24 +0100
Re: ant task to compute lines of code Laura Schmidt <ls@mailinator.com> - 2012-11-19 04:28 +0100
Re: ant task to compute lines of code Lew <lewbloch@gmail.com> - 2012-11-18 20:35 -0800
Re: ant task to compute lines of code Robert Klemme <shortcutter@googlemail.com> - 2012-11-19 05:07 -0800
Re: ant task to compute lines of code Arne Vajhøj <arne@vajhoej.dk> - 2012-11-18 11:52 -0500
Re: ant task to compute lines of code Leif Roar Moldskred <leifm@dimnakorr.com> - 2012-11-19 00:05 -0600
Re: ant task to compute lines of code Jeff Higgins <jeff@invalid.invalid> - 2012-11-19 08:44 -0500
csiph-web