mirror of
https://github.com/Estom/notes.git
synced 2026-04-24 02:21:45 +08:00
spring-jdbc shell-find&xargs
This commit is contained in:
6
start.sh
6
start.sh
@@ -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}'
|
||||
Reference in New Issue
Block a user