Solved

line count on files in a directory structure

Posted on 2003-10-27
3
636 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux Server is saturating the IP table.. 14 372
Linux , how can I inspect a tar GZ file 3 132
install command in linux 1 44
Shell script for mvn build 2 69
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 demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

867 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now