-
-
Save phnessu4/5625818 to your computer and use it in GitHub Desktop.
This file contains 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
#计算脚本运行时间 | |
time xxxx | |
#输出文件长度 | |
ls -l | awk '{ print $5}' | |
#判断文件是否为空 | |
ls -l | awk '{ if(!$5) print "empty" }' | |
#计算目录下所有.c文件行数 | |
find -name *.c | wc -l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment