Solved

line count on files in a directory structure

Posted on 2003-10-27
3
639 Views
Last Modified: 2010-04-21
hi, i have a depp directory structure with java sources, how can i get a line count on these files?
i tried "find * -name '*.java' | wc -" but it didn't work, anyone knows something?
0
Comment
Question by:honkinamiland
3 Comments
 
LVL 3

Expert Comment

by:rfr1tz
ID: 9629787
For 20 points, I'll just tell you that you aren't even close.
0
 
LVL 29

Accepted Solution

by:
MikeOM_DBA earned 20 total points
ID: 9629995
Try this:

find . -name '*.java' -exec wc -l {} \;
0
 

Author Comment

by:honkinamiland
ID: 9630063
ok, thanks
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Optimize bash script 20 464
Shell script / command to generate IO / IOPS load 22 368
automating commands in linux on start up 2 47
php session folder question (Code Igniter) 3 93
Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question