Last active
August 29, 2015 14:06
-
-
Save huang-x-h/d68bd2f7817f68226ec4 to your computer and use it in GitHub Desktop.
常用Bash脚本命令
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 查看当前目录文件总数 | |
find ./ -name "*.js" | wc -l | |
# 查看当前目录文件总行数 | |
find ./ -name "*.js" | xargs cat | wc -l | |
# 查看当前目录文件总行数,不包含空行 | |
find ./ -name "*.js" | xargs cat | grep -v ^$ | wc -l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment