spring-jdbc shell-find&xargs

This commit is contained in:
法然
2022-10-10 21:10:35 +08:00
parent dc74c6bcc4
commit 8ea2295dc5
11 changed files with 353 additions and 16 deletions

View File

@@ -1,2 +1,8 @@
git push -f git@github.com:Estom/notes.git
git push git@github.com:Estom/notes.git
# 统计代码的数量
find . -name "*.java" -exec wc -l {} \;#利用exec参数
find . -name "*.java" |xargs wc -l # 利用xargs参数
find . -name "*.java" -exec wc -l {} \; | awk 'BEGIN{num=0} {num+=$1;print $1;}END{print num}'