Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #19811
| Received | by 10.224.220.136 with SMTP id hy8mr8552025qab.3.1353330435513; Mon, 19 Nov 2012 05:07:15 -0800 (PST) |
|---|---|
| Received | by 10.49.60.40 with SMTP id e8mr252530qer.40.1353330435494; Mon, 19 Nov 2012 05:07:15 -0800 (PST) |
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!u2no12680501qal.0!news-out.google.com!gf5ni327qab.0!nntp.google.com!u2no12707440qal.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | comp.lang.java.programmer |
| Date | Mon, 19 Nov 2012 05:07:15 -0800 (PST) |
| In-Reply-To | <93022fca-0e68-4b8a-aceb-ea6042a7f4a5@googlegroups.com> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=80.66.20.180; posting-account=MGO7qgoAAABvyo26eHVDO00044spH-ws |
| NNTP-Posting-Host | 80.66.20.180 |
| References | <k8avks$nl8$1@news.m-online.net> <agsge8F5o27U1@mid.individual.net> <k8c902$rjs$1@news.m-online.net> <93022fca-0e68-4b8a-aceb-ea6042a7f4a5@googlegroups.com> |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <8b6c2a93-06e8-496c-92b9-4c3e776702fe@googlegroups.com> (permalink) |
| Subject | Re: ant task to compute lines of code |
| From | Robert Klemme <shortcutter@googlemail.com> |
| Injection-Date | Mon, 19 Nov 2012 13:07:15 +0000 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Xref | csiph.com comp.lang.java.programmer:19811 |
Show key headers only | View raw
On Monday, November 19, 2012 5:35:05 AM UTC+1, Lew wrote:
> You could exec "wc -l $(find src -name *.java)".
That's error prone in light of file and directory names with spaces and line breaks (not too common, I know). In this case
find src -name \*.java -exec wc -l {} +
is better.
> Not sure what the attraction is of "cat" when "wc"
> takes files as arguments.
One does not have to do the totaling manually. Also "wc" will only output a single numeric value which is convenient if you want to further process it.
Kind regards
robert
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