更新 script-examples/code/ex01.sh

This commit is contained in:
2024-07-24 21:38:20 +08:00
parent 081e6a74a7
commit a6b4c3f36a

View File

@@ -2,7 +2,7 @@
# Description : 统计某个文件中的行数
# 方法 1 优先推荐使用该方式进行统计函数
# 方法 1 : 优先推荐使用该方式进行统计函数
sed -n '$=' hello.c
# 方法 2
cat hello.c | wc -l