BetaCount - A line counter utility

Discussion about everything. New games, 3d math, development tips...
Post Reply
catron
Posts: 158
Joined: Mon Feb 19, 2007 1:54 am

BetaCount - A line counter utility

Post by catron »

Hello,
I was bored today, so I whipped this up. I really needed one of these anyway,
so my 30 minutes was not wasted! Anyway, BetaCount (yes, Beta is part of the name) is a
utility to count the number of lines of code you have in a project. It features an extension
selector, so you can select if want .cpp files only, .h files, ,txt files, or whatever.
Another feature is recursive directory scanning, so all sub directories are included.

It is multi-platform, but it is only built for linux at the moment. I may post a windows build later.

installation:

Code: Select all

cd dir/of/download
sudo chmod 777 BetaCount
sudo cp BetaCount /usr/bin
sudo apt-get install libboost-filesystem1.34.1
usage:

Code: Select all

BetaCount ".ext1 .ext2 .ext3 .etc"
or
Betacount ".ext1 .ext2. ext3 .etc" /dir/to/count
The first one defaults to ./

output:

Code: Select all

braden@braden-desktop:~/Devel/irrlicht-1.4.2/source/Irrlicht$ BetaCount ".cpp .h"
Betacount (C) 2008 Braden McDorman
330 lines in 	./CGUIFileOpenDialog.cpp
327 lines in 	./CTRGouraudWire.cpp
2429 lines in 	./COpenGLDriver.cpp
170 lines in 	./CSoftwareDriver.h
71 lines in 	./CGUIImage.h
487 lines in 	./CGUIColorSelectDialog.cpp
317 lines in 	./CColladaFileLoader.h
1723 lines in 	./CColladaFileLoader.cpp
360 lines in 	./CFileSystem.cpp
1355 lines in 	./CIrrDeviceLinux.cpp
202 lines in 	./jpeglib/jdhuff.h
136 lines in 	./jpeglib/transupp.h
199 lines in 	./jpeglib/jmemsys.h
292 lines in 	./jpeglib/jerror.h
364 lines in 	./jpeglib/jmorecfg.h
185 lines in 	./jpeglib/cdjpeg.h
46 lines in 	./jpeglib/jconfig.h
133 lines in 	./jpeglib/cderror.h
48 lines in 	./jpeglib/jchuff.h
1097 lines in 	./jpeglib/jpeglib.h
15 lines in 	./jpeglib/jversion.h
92 lines in 	./jpeglib/jinclude.h
177 lines in 	./jpeglib/jdct.h
393 lines in 	./jpeglib/jpegint.h
56 lines in 	./zlib/inftrees.h
95 lines in 	./zlib/inffixed.h
116 lines in 	./zlib/inflate.h
333 lines in 	./zlib/zconf.h
12 lines in 	./zlib/inffast.h
1358 lines in 	./zlib/zlib.h
270 lines in 	./zlib/zutil.h
442 lines in 	./zlib/crc32.h
332 lines in 	./zlib/deflate.h
129 lines in 	./zlib/trees.h
300 lines in 	./CIrrMeshWriter.cpp
400 lines in 	./CD3D9ParallaxMapRenderer.cpp
919 lines in 	./CSoftwareDriver.cpp
135 lines in 	./CSoftwareTexture2.h
267 lines in 	./CSTLMeshFileLoader.cpp
71 lines in 	./CXMLReader.cpp
2314 lines in 	./CSceneManager.cpp
146 lines in 	./CCameraSceneNode.h
112 lines in 	./CParticleRingEmitter.h
650 lines in 	./CGUIFont.cpp
55 lines in 	./COpenGLParallaxMapRenderer.h
1372 lines in 	./CGUIEditBox.cpp
678 lines in 	./CTRTextureGouraudNoZ2.cpp
130 lines in 	./CBoneSceneNode.cpp
47 lines in 	./CImageWriterPCX.cpp
24 lines in 	./libpng/contrib/visupng/resource.h
28 lines in 	./libpng/contrib/visupng/PngFile.h
244 lines in 	./libpng/contrib/visupng/cexcept.h
65 lines in 	./libpng/contrib/gregbook/readpng.h
92 lines in 	./libpng/contrib/gregbook/readpng2.h
110 lines in 	./libpng/contrib/gregbook/writepng.h
29 lines in 	./libpng/projects/cbuilder5/libpng.cpp
3524 lines in 	./libpng/png.h
1484 lines in 	./libpng/pngconf.h
733 lines in 	./CTRTextureGouraudAlphaNoZ.cpp
301 lines in 	./CTRFlat.cpp
323 lines in 	./CTRTextureWire2.cpp
100 lines in 	./CParticleBoxEmitter.h
120 lines in 	./CWriteFile.cpp
148 lines in 	./irrXML.cpp
77 lines in 	./CFPSCounter.cpp
53 lines in 	./CZBuffer.h
2242 lines in 	./CD3D9Driver.cpp
85 lines in 	./CBoneSceneNode.h
93 lines in 	./COpenGLShaderMaterialRenderer.h
84 lines in 	./CSoftware2MaterialRenderer.h
56 lines in 	./CGUICheckBox.h
300 lines in 	./CD3D8Driver.h
483 lines in 	./CZipReader.cpp
64 lines in 	./CParticleFadeOutAffector.h
301 lines in 	./os.cpp
48 lines in 	./CSceneNodeAnimatorRotation.h
702 lines in 	./CColladaMeshWriter.cpp
55 lines in 	./CFPSCounter.h
282 lines in 	./CTRFlatWire.cpp
730 lines in 	./CSceneCollisionManager.cpp
97 lines in 	./CIrrMeshFileLoader.h
121 lines in 	./CD3D8Texture.h
314 lines in 	./CTRTextureFlatWire.cpp
209 lines in 	./CImageWriterPNG.cpp
295 lines in 	./CGUIEnvironment.h
54 lines in 	./CMD2MeshFileLoader.cpp
38 lines in 	./CImageWriterBMP.h
64 lines in 	./CIrrMeshWriter.h
106 lines in 	./CImageWriterPPM.cpp
263 lines in 	./CGUIMenu.cpp
34 lines in 	./CTriangleBBSelector.h
253 lines in 	./CSTLMeshWriter.cpp
53 lines in 	./CDummyTransformationSceneNode.h
379 lines in 	./COpenGLDriver.h
112 lines in 	./CMemoryReadFile.cpp
54 lines in 	./CD3D9NormalMapRenderer.h
40 lines in 	./CSkyDomeSceneNode.h
159 lines in 	./CTriangleSelector.cpp
1992 lines in 	./CAttributeImpl.h
37 lines in 	./IImagePresenter.h
1314 lines in 	./CTerrainSceneNode.cpp
106 lines in 	./COBJMeshFileLoader.h
47 lines in 	./CEmptySceneNode.h
125 lines in 	./COpenGLSLMaterialRenderer.h
297 lines in 	./COpenGLNormalMapRenderer.cpp
273 lines in 	./CImageLoaderPNG.cpp
554 lines in 	./CNullDriver.h
238 lines in 	./COpenGLShaderMaterialRenderer.cpp
128 lines in 	./CParticleAnimatedMeshSceneNodeEmitter.h
59 lines in 	./CGUIModalScreen.h
589 lines in 	./CD3D8MaterialRenderer.h
340 lines in 	./CTRTextureFlat.cpp
211 lines in 	./CParticleAnimatedMeshSceneNodeEmitter.cpp
187 lines in 	./COSOperator.cpp
84 lines in 	./CCSMLoader.h
382 lines in 	./OctTree.h
47 lines in 	./CSceneNodeAnimatorDelete.cpp
449 lines in 	./CDMFLoader.cpp
145 lines in 	./COpenGLTexture.h
174 lines in 	./CWaterSurfaceSceneNode.cpp
537 lines in 	./CIrrDeviceSDL.cpp
733 lines in 	./CAttributes.h
368 lines in 	./CTRTextureGouraudNoZ.cpp
843 lines in 	./CMY3DMeshFileLoader.cpp
160 lines in 	./CGUIToolBar.cpp
350 lines in 	./CIrrDeviceLinux.h
139 lines in 	./CAnimatedMeshMD3.h
86 lines in 	./CTRTextureGouraud.h
115 lines in 	./CMY3DMeshFileLoader.h
54 lines in 	./CLogger.h
103 lines in 	./CParticleSphereEmitter.h
45 lines in 	./CSceneNodeAnimatorDelete.h
307 lines in 	./CD3D8ParallaxMapRenderer.cpp
270 lines in 	./CGUISpinBox.cpp
250 lines in 	./CXMLWriter.cpp
368 lines in 	./CImageLoaderBMP.cpp
48 lines in 	./IDepthBuffer.h
103 lines in 	./CGUISpinBox.h
122 lines in 	./CLMTSMeshFileLoader.h
111 lines in 	./CImageLoaderBMP.h
116 lines in 	./CGUIFont.h
70 lines in 	./CCubeSceneNode.h
860 lines in 	./CGUIListBox.cpp
94 lines in 	./CPakReader.h
267 lines in 	./CGUIWindow.cpp
586 lines in 	./CIrrMeshFileLoader.cpp
61 lines in 	./CTriangleSelector.h
239 lines in 	./CD3D8NormalMapRenderer.cpp
69 lines in 	./CDefaultSceneNodeAnimatorFactory.h
56 lines in 	./CSTLMeshWriter.h
144 lines in 	./CImageWriterTGA.cpp
139 lines in 	./CDefaultSceneNodeAnimatorFactory.cpp
125 lines in 	./CSceneNodeAnimatorTexture.cpp
691 lines in 	./CTRTextureDetailMap2.cpp
155 lines in 	./CDefaultGUIElementFactory.cpp
798 lines in 	./CXMLReaderImpl.h
60 lines in 	./CWriteFile.h
74 lines in 	./CColladaMeshWriter.h
124 lines in 	./CSoftwareTexture2.cpp
405 lines in 	./CAnimatedMeshMD3.cpp
362 lines in 	./COpenGLParallaxMapRenderer.cpp
71 lines in 	./CDefaultGUIElementFactory.h
177 lines in 	./CGUIListBox.h
189 lines in 	./CImageLoaderPCX.cpp
310 lines in 	./CCameraSceneNode.cpp
86 lines in 	./CShadowVolumeSceneNode.h
109 lines in 	./CParticleCylinderEmitter.cpp
77 lines in 	./CSceneNodeAnimatorFlyCircle.cpp
215 lines in 	./MacOSX/CIrrDeviceMacOSX.h
17 lines in 	./MacOSX/AppDelegate.h
15 lines in 	./MacOSX/OSXClipboard.h
719 lines in 	./CTRTextureLightMapGouraud2_M4.cpp
557 lines in 	./COpenGLTexture.cpp
91 lines in 	./CGUIComboBox.h
1554 lines in 	./CAttributes.cpp
65 lines in 	./CLimitReadFile.h
1525 lines in 	./CGUIEnvironment.cpp
83 lines in 	./CD3D8ShaderMaterialRenderer.h
66 lines in 	./CGUISpriteBank.h
59 lines in 	./CMemoryReadFile.h
241 lines in 	./COgreMeshFileLoader.h
439 lines in 	./COpenGLExtensionHandler.cpp
755 lines in 	./CGUIContextMenu.cpp
68 lines in 	./CReadFile.h
101 lines in 	./CGUIScrollBar.h
750 lines in 	./CMS3DMeshFileLoader.cpp
47 lines in 	./CImageWriterPSD.cpp
2182 lines in 	./CD3D8Driver.cpp
197 lines in 	./CSkinnedMesh.h
782 lines in 	./dmfsupport.h
95 lines in 	./CDMFLoader.h
212 lines in 	./CSceneNodeAnimatorCollisionResponse.cpp
365 lines in 	./CTRTextureGouraudWire.cpp
105 lines in 	./CCameraFPSSceneNode.h
713 lines in 	./CTRTextureBlend.cpp
38 lines in 	./CImageWriterPSD.h
40 lines in 	./CMD2MeshFileLoader.h
151 lines in 	./CImage.h
1125 lines in 	./CMeshManipulator.cpp
80 lines in 	./CD3D9HLSLMaterialRenderer.h
140 lines in 	./COCTLoader.h
76 lines in 	./CParticleGravityAffector.cpp
204 lines in 	./CAnimatedMeshSceneNode.h
326 lines in 	./CLMTSMeshFileLoader.cpp
420 lines in 	./CTRTextureGouraudAdd.cpp
502 lines in 	./S4DVertex.h
1361 lines in 	./CSkinnedMesh.cpp
162 lines in 	./CGUIImage.cpp
700 lines in 	./CQuake3ShaderSceneNode.cpp
330 lines in 	./CCameraMayaSceneNode.cpp
528 lines in 	./CGUIScrollBar.cpp
137 lines in 	./CImageWriterBMP.cpp
202 lines in 	./CGUICheckBox.cpp
675 lines in 	./CTRTextureLightMap2_M2.cpp
176 lines in 	./C3DSMeshFileLoader.h
62 lines in 	./CD3D8ParallaxMapRenderer.h
91 lines in 	./CParticlePointEmitter.h
38 lines in 	./CImageWriterTGA.h
191 lines in 	./CTerrainTriangleSelector.cpp
1920 lines in 	./CSoftwareDriver2.cpp
376 lines in 	./COCTLoader.cpp
124 lines in 	./CParticleCylinderEmitter.h
51 lines in 	./CParticleRotationAffector.h
193 lines in 	./COctTreeTriangleSelector.cpp
120 lines in 	./CDepthBuffer.cpp
69 lines in 	./ITriangleRenderer.h
82 lines in 	./CParticleAttractionAffector.h
88 lines in 	./CSceneNodeAnimatorFlyStraight.cpp
56 lines in 	./CImageLoaderPPM.h
55 lines in 	./CSceneNodeAnimatorFollowSpline.h
690 lines in 	./CD3D9Texture.cpp
469 lines in 	./CTRTextureGouraud.cpp
786 lines in 	./glxext.h
336 lines in 	./CMY3DHelper.h
679 lines in 	./CTRTextureLightMap2_M1.cpp
174 lines in 	./CCubeSceneNode.cpp
203 lines in 	./CParticleMeshEmitter.cpp
344 lines in 	./CMeshSceneNode.cpp
303 lines in 	./CCameraFPSSceneNode.cpp
105 lines in 	./CSceneNodeAnimatorCollisionResponse.h
121 lines in 	./CMeshCache.h
60 lines in 	./CD3D9ParallaxMapRenderer.h
735 lines in 	./CTRTextureGouraudAlpha.cpp
132 lines in 	./CGUIButton.h
31 lines in 	./S2DVertex.h
256 lines in 	./CSkyBoxSceneNode.cpp
292 lines in 	./CD3D9HLSLMaterialRenderer.cpp
989 lines in 	./CB3DMeshFileLoader.cpp
364 lines in 	./COpenGLSLMaterialRenderer.cpp
158 lines in 	./CSphereSceneNode.cpp
1066 lines in 	./BuiltInFont.h
3507 lines in 	./libpng_osx/png.h
1484 lines in 	./libpng_osx/pngconf.h
647 lines in 	./CD3D8Texture.cpp
1296 lines in 	./C3DSMeshFileLoader.cpp
53 lines in 	./CSTLMeshFileLoader.h
164 lines in 	./CDefaultSceneNodeFactory.cpp
90 lines in 	./CTerrainTriangleSelector.h
189 lines in 	./CMY3DStuff.h
101 lines in 	./CParticleSphereEmitter.cpp
49 lines in 	./CMD3MeshFileLoader.h
48 lines in 	./IZBuffer.h
59 lines in 	./CSceneNodeAnimatorFlyStraight.h
715 lines in 	./COpenGLMaterialRenderer.h
791 lines in 	./COBJMeshFileLoader.cpp
165 lines in 	./CSoftwareTexture.cpp
157 lines in 	./CGUIEditBox.h
99 lines in 	./CVideoModeList.cpp
61 lines in 	./CGUIMessageBox.h
84 lines in 	./COctTreeSceneNode.h
376 lines in 	./CImageLoaderPSD.cpp
128 lines in 	./CD3D9Texture.h
122 lines in 	./CB3DMeshFileLoader.h
170 lines in 	./CSkyDomeSceneNode.cpp
85 lines in 	./CImageLoaderPSD.h
50 lines in 	./CMS3DMeshFileLoader.h
55 lines in 	./CGeometryCreator.h
72 lines in 	./Irrlicht.cpp
572 lines in 	./CColorConverter.cpp
335 lines in 	./CTerrainSceneNode.h
878 lines in 	./CCSMLoader.cpp
89 lines in 	./CBillboardSceneNode.h
53 lines in 	./CGUIToolBar.h
621 lines in 	./CSceneManager.h
93 lines in 	./CImageLoaderPCX.h
1012 lines in 	./CAnimatedMeshSceneNode.cpp
63 lines in 	./CSkyBoxSceneNode.h
85 lines in 	./SoftwareDriver2_compile_config.h
60 lines in 	./CParticleAttractionAffector.cpp
77 lines in 	./CXMLWriter.h
52 lines in 	./CGUIMenu.h
262 lines in 	./CIrrDeviceWin32.h
673 lines in 	./CTRTextureGouraudAddNoZ2.cpp
308 lines in 	./CD3D9Driver.h
615 lines in 	./CD3D9MaterialRenderer.h
1776 lines in 	./CNullDriver.cpp
160 lines in 	./CZipReader.h
81 lines in 	./CGUIColorSelectDialog.h
80 lines in 	./CSoftwareTexture.h
422 lines in 	./COctTreeSceneNode.cpp
2145 lines in 	./CXMeshFileLoader.cpp
1037 lines in 	./COgreMeshFileLoader.cpp
120 lines in 	./CParticlePointEmitter.cpp
65 lines in 	./CMetaTriangleSelector.h
419 lines in 	./CTextSceneNode.cpp
213 lines in 	./CParticleSystemSceneNode.h
118 lines in 	./CLimitReadFile.cpp
685 lines in 	./CTRGouraudAlphaNoZ2.cpp
133 lines in 	./CGUITabControl.h
38 lines in 	./CImageWriterPPM.h
434 lines in 	./CGUIMessageBox.cpp
64 lines in 	./CGUIWindow.h
136 lines in 	./CMetaTriangleSelector.cpp
107 lines in 	./CFileSystem.h
114 lines in 	./CGUIStaticText.h
152 lines in 	./CGUIContextMenu.h
1339 lines in 	./COpenGLExtensionHandler.h
86 lines in 	./CQuake3ShaderSceneNode.h
38 lines in 	./CImageWriterJPG.h
297 lines in 	./CD3D9NormalMapRenderer.cpp
110 lines in 	./CZBuffer.cpp
101 lines in 	./CD3D9ShaderMaterialRenderer.h
76 lines in 	./COctTreeTriangleSelector.h
65 lines in 	./CTriangleBBSelector.cpp
1436 lines in 	./CImage.cpp
261 lines in 	./CImageLoaderJPG.cpp
225 lines in 	./CPakReader.cpp
81 lines in 	./CDefaultSceneNodeFactory.h
60 lines in 	./CDummyTransformationSceneNode.cpp
66 lines in 	./CParticleGravityAffector.h
207 lines in 	./CIrrDeviceSDL.h
240 lines in 	./CMeshCache.cpp
127 lines in 	./CSceneCollisionManager.h
91 lines in 	./CCameraMayaSceneNode.h
77 lines in 	./CGUIInOutFader.h
65 lines in 	./CWaterSurfaceSceneNode.h
684 lines in 	./CTRGouraudAlpha2.cpp
52 lines in 	./COSOperator.h
50 lines in 	./COpenGLNormalMapRenderer.h
504 lines in 	./CGUITabControl.cpp
278 lines in 	./CImageLoaderPPM.cpp
140 lines in 	./CGUISpriteBank.cpp
79 lines in 	./CFileList.h
27 lines in 	./CXMLReader.h
93 lines in 	./CMeshSceneNode.h
247 lines in 	./CGUISkin.h
227 lines in 	./CImageWriterJPG.cpp
317 lines in 	./CD3D8ShaderMaterialRenderer.cpp
125 lines in 	./CSceneNodeAnimatorFollowSpline.cpp
963 lines in 	./CIrrDeviceWin32.cpp
108 lines in 	./os.h
38 lines in 	./CImageWriterPCX.h
859 lines in 	./CGUISkin.cpp
130 lines in 	./CTextSceneNode.h
461 lines in 	./CGUIStaticText.cpp
201 lines in 	./CXMeshFileLoader.h
108 lines in 	./CMeshManipulator.h
193 lines in 	./CLightSceneNode.cpp
62 lines in 	./CGUIMeshViewer.h
110 lines in 	./CAnimatedMeshMD2.h
55 lines in 	./CSceneNodeAnimatorTexture.h
57 lines in 	./CD3D8NormalMapRenderer.h
721 lines in 	./CTRTextureGouraudVertexAlpha2.cpp
474 lines in 	./CShadowVolumeSceneNode.cpp
481 lines in 	./CGUIButton.cpp
712 lines in 	./CTRTextureGouraudAdd2.cpp
199 lines in 	./CImageLoaderTGA.cpp
114 lines in 	./CImageLoaderJPG.h
359 lines in 	./CTRGouraud.cpp
70 lines in 	./CLightSceneNode.h
244 lines in 	./CBillboardSceneNode.cpp
92 lines in 	./CImageLoaderTGA.h
63 lines in 	./CSceneNodeAnimatorRotation.cpp
161 lines in 	./CParticleBoxEmitter.cpp
428 lines in 	./CGUIComboBox.cpp
184 lines in 	./CFileList.cpp
51 lines in 	./CBSPMeshFileLoader.h
633 lines in 	./CParticleSystemSceneNode.cpp
161 lines in 	./CGUIModalScreen.cpp
69 lines in 	./CEmptySceneNode.cpp
761 lines in 	./CAnimatedMeshMD2.cpp
84 lines in 	./CBSPMeshFileLoader.cpp
80 lines in 	./CParticleFadeOutAffector.cpp
100 lines in 	./CParticleRingEmitter.cpp
129 lines in 	./CIrrDeviceStub.h
54 lines in 	./CMD3MeshFileLoader.cpp
243 lines in 	./CIrrDeviceStub.cpp
130 lines in 	./IBurningShader.h
706 lines in 	./CTRTextureLightMap2_Add.cpp
704 lines in 	./CTRTextureGouraud2.cpp
57 lines in 	./CSceneNodeAnimatorFlyCircle.h
90 lines in 	./CLogger.cpp
881 lines in 	./SoftwareDriver2_helper.h
7261 lines in 	./glext.h
80 lines in 	./CVideoModeList.h
72 lines in 	./CSphereSceneNode.h
118 lines in 	./CReadFile.cpp
1405 lines in 	./CTRTextureLightMap2_M4.cpp
262 lines in 	./CSoftwareDriver2.h
85 lines in 	./CColorConverter.h
51 lines in 	./CParticleRotationAffector.cpp
106 lines in 	./IBurningShader.cpp
181 lines in 	./CGUIInOutFader.cpp
1845 lines in 	./CQ3LevelMesh.cpp
103 lines in 	./CTimer.h
529 lines in 	./CD3D9ShaderMaterialRenderer.cpp
46 lines in 	./CImageLoaderPNG.h
52 lines in 	./CDepthBuffer.h
444 lines in 	./CQ3LevelMesh.h
38 lines in 	./CImageWriterPNG.h
642 lines in 	./CGeometryCreator.cpp
673 lines in 	./CTRGouraud2.cpp
73 lines in 	./CGUIFileOpenDialog.h
127 lines in 	./CParticleMeshEmitter.h
175 lines in 	./CGUIMeshViewer.cpp
147899 lines counted in all files
Just to be a little on topic.. :P

enjoy!

http://wikisend.com/download/953676/BetaCount

Thanks,
Braden McDorman (catron)
Image
Image
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Useful little app, personally i use Source Monitor which seems to do a pretty good job and adds in other statistics too!
Image Image Image
fmx

Post by fmx »

quick question (hopefully on topic)

I know that generally having files with excessive amounts of code-lines is bad (larger file sizes, slow-down development time looking through, etc), but what other reasons are there to know how many lines of code you have (and other statistics JP)?

does compilation time get effected?
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

cuz den u noes how 1337 yew r.
Image Image Image
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

IMHO this is compleely useless for Linux users, because we can already use the existing tools quite efficient:

Code: Select all

find . -name "*.[ch]*"|grep -v svn|xargs wc|less
So you can find all the necessary files with find (has many more options to find really just the right files, I'm using grep to exclude all svn directories here just for convenience) and calling wc to do the counting. Many other ways possible as well, so who would want to reinvent the wheel :?:
xDan
Competition winner
Posts: 673
Joined: Thu Mar 30, 2006 1:23 pm
Location: UK
Contact:

Post by xDan »

Weeel, it could be useful for linux noobs like me, who wouldn't know those commands :shock:
catron
Posts: 158
Joined: Mon Feb 19, 2007 1:54 am

Post by catron »

@hybrid, That command didn't work for me. IMHO a multiplatform dedicated solution is best.

Thanks, has anyone actually tested this? just for verification.

Thanks,
Braden
Image
Image
Post Reply