Files
notes_estom/Script/start.sh
2025-12-21 04:21:50 -05:00

16 lines
556 B
Bash

# 将笔记推送到不同的仓库中
git push 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}'
# 查看今天的日志
find . -name "*.log" | xargs grep "wrod"
# wsl访问宿主机网络
New-NetFirewallRule -DisplayName "WSL" -Direction Inbound -InterfaceAlias "vEthernet (WSL)" -Action Allow