Skip to content

Instantly share code, notes, and snippets.

@jruif
Forked from demonnico/statist.sh
Last active September 28, 2017 07:22
Show Gist options
  • Select an option

  • Save jruif/2933a4499ecabf5bf06ac6f33cfab252 to your computer and use it in GitHub Desktop.

Select an option

Save jruif/2933a4499ecabf5bf06ac6f33cfab252 to your computer and use it in GitHub Desktop.

Revisions

  1. jruif revised this gist Sep 28, 2017. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions statist.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    //.m文件的行数
    find . -name "*.m" | xargs wc -l
    //.js文件的行数
    find . -name "*.js" | xargs wc -l

    //.m .h .xib .c 文件内容总行数
    find . -name "*.m" -or -name "*.h" -or -name "*.xib" -or -name "*.c" |xargs grep -v "^$"|wc -l
    //.js .jsx .css .scss 文件内容总行数
    find . -name "*.js" -or -name "*.jsx" -or -name "*.css" -or -name "*.scss" |xargs grep -v "^$"|wc -l
  2. @demonnico demonnico created this gist Jun 14, 2013.
    5 changes: 5 additions & 0 deletions statist.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    //.m文件的行数
    find . -name "*.m" | xargs wc -l

    //.m .h .xib .c 文件内容总行数
    find . -name "*.m" -or -name "*.h" -or -name "*.xib" -or -name "*.c" |xargs grep -v "^$"|wc -l