更新 script-examples/code/ex01.sh
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Description : 统计某个文件中的行数
|
# Description : 统计某个文件中的行数
|
||||||
|
|
||||||
# 方法 1 : 优先推荐使用该方式进行统计函数
|
# 方法 1 : 优先推荐使用该方式进行统计函数
|
||||||
sed -n '$=' hello.c
|
sed -n '$=' hello.c
|
||||||
# 方法 2
|
# 方法 2
|
||||||
cat hello.c | wc -l
|
cat hello.c | wc -l
|
||||||
|
|||||||
Reference in New Issue
Block a user