---
title: "统计代码行数"
author: "lovebirdegg"
date: "2011-01-04T16:39:22Z"
tags: []
categories: ["移动开发"]
slug: "untitled"
draft: false
lastmod: "2011-01-04T16:40:04Z"
id: 858844
url: "https://lovebirdegg.iteye.com/blog/858844"
---

[http://lovebirdegg.appspot.com/?p=20003](http://lovebirdegg.appspot.com/?p=20003 "http://lovebirdegg.appspot.com/?p=20003")

用终端到程序目录下输入下面的命令：

 

 

find ./ -name "\*.m" -exec cat {} \\; |wc -l

 

find ./ -name "\*.h" -exec cat {} \\; | wc -l

 

两个数相加就是