シェルでソースコードの行数を簡単にカウントする

nbeppu 62views 更新:2015年10月19日
find . -name "*.java" | xargs wc -l
.....
      72 ./portlets/workflow/src/main/java/com/aimluck/eip/modules/screens/WorkflowAllScreen.java
      70 ./portlets/workflow/src/main/java/com/aimluck/eip/modules/screens/WorkflowCategoryDetailScreen.java
     117 ./portlets/workflow/src/main/java/com/aimluck/eip/modules/screens/WorkflowCategoryFormJSONScreen.java
      74 ./portlets/workflow/src/main/java/com/aimluck/eip/modules/screens/WorkflowCategoryFormScreen.java
      66 ./portlets/workflow/src/main/java/com/aimluck/eip/modules/screens/WorkflowCategoryListScreen.java
      74 ./portlets/workflow/src/main/java/com/aimluck/eip/modules/screens/WorkflowCategoryScreen.java
      69 ./portlets/workflow/src/main/java/com/aimluck/eip/modules/screens/WorkflowDetailScreen.java
      59 ./portlets/workflow/src/main/java/com/aimluck/eip/modules/screens/WorkflowFileRawScreen.java
     161 ./portlets/workflow/src/main/java/com/aimluck/eip/modules/screens/WorkflowFormJSONScreen.java
      75 ./portlets/workflow/src/main/java/com/aimluck/eip/modules/screens/WorkflowFormScreen.java
      66 ./portlets/workflow/src/main/java/com/aimluck/eip/modules/screens/WorkflowListScreen.java
      69 ./portlets/workflow/src/main/java/com/aimluck/eip/modules/screens/WorkflowRouteDetailScreen.java
     101 ./portlets/workflow/src/main/java/com/aimluck/eip/modules/screens/WorkflowRouteFormJSONScreen.java
      73 ./portlets/workflow/src/main/java/com/aimluck/eip/modules/screens/WorkflowRouteFormScreen.java
      64 ./portlets/workflow/src/main/java/com/aimluck/eip/modules/screens/WorkflowRouteListScreen.java
      74 ./portlets/workflow/src/main/java/com/aimluck/eip/modules/screens/WorkflowRouteScreen.java
      73 ./portlets/workflow/src/main/java/com/aimluck/eip/modules/screens/WorkflowScreen.java
      94 ./portlets/workflow/src/main/java/com/aimluck/eip/modules/screens/WorkflowScreenPrint.java
      71 ./portlets/workflow/src/main/java/com/aimluck/eip/modules/screens/WorkflowUserLiteJSONScreen.java
     128 ./portlets/workflow/src/main/java/com/aimluck/eip/workflow/beans/WorkflowMailBean.java
    2071 ./portlets/workflow/src/main/java/com/aimluck/eip/workflow/util/WorkflowUtils.java
     585 ./portlets/workflow/src/main/java/com/aimluck/eip/workflow/WorkflowAllSelectData.java
     185 ./portlets/workflow/src/main/java/com/aimluck/eip/workflow/WorkflowCategoryDetailResultData.java
     472 ./portlets/workflow/src/main/java/com/aimluck/eip/workflow/WorkflowCategoryFormData.java
     129 ./portlets/workflow/src/main/java/com/aimluck/eip/workflow/WorkflowCategoryMultiDelete.java
     135 ./portlets/workflow/src/main/java/com/aimluck/eip/workflow/WorkflowCategoryResultData.java
     231 ./portlets/workflow/src/main/java/com/aimluck/eip/workflow/WorkflowCategorySelectData.java
     601 ./portlets/workflow/src/main/java/com/aimluck/eip/workflow/WorkflowConfirmFormData.java
     176 ./portlets/workflow/src/main/java/com/aimluck/eip/workflow/WorkflowDecisionRecordData.java
     193 ./portlets/workflow/src/main/java/com/aimluck/eip/workflow/WorkflowDetailResultData.java
    1202 ./portlets/workflow/src/main/java/com/aimluck/eip/workflow/WorkflowFormData.java
     110 ./portlets/workflow/src/main/java/com/aimluck/eip/workflow/WorkflowOldRequestResultData.java
     401 ./portlets/workflow/src/main/java/com/aimluck/eip/workflow/WorkflowResultData.java
     102 ./portlets/workflow/src/main/java/com/aimluck/eip/workflow/WorkflowRouteDetailResultData.java
     457 ./portlets/workflow/src/main/java/com/aimluck/eip/workflow/WorkflowRouteFormData.java
     117 ./portlets/workflow/src/main/java/com/aimluck/eip/workflow/WorkflowRouteMultiDelete.java
     153 ./portlets/workflow/src/main/java/com/aimluck/eip/workflow/WorkflowRouteResultData.java
     209 ./portlets/workflow/src/main/java/com/aimluck/eip/workflow/WorkflowRouteSelectData.java
     722 ./portlets/workflow/src/main/java/com/aimluck/eip/workflow/WorkflowSelectData.java
      85 ./work/org/apache/jsp/index_jsp.java
  469446 total

オープンソース版の Aipo のソースコードはJavaだけでも50万行くらいあるようですね。

ログイン / 新規登録してコメントする

このソースコードをストックして後で利用したり、作業に利用したソースコードをまとめることができます。

こちらもお役に立つかもしれません