1、写一个脚本 脚本可以接受一个以上的文件路径作为参数; 显示每个文件所拥的行数;
显示本次共对多少个文件执行了行数统计。 #!/bin/bash
for file in $*; do
lines=`wc -l $file | cut -d' ' -f1`
echo "$file has $lines lines.
【mysql】 【shell】 【ADD】 【脚本】 【编程】 …
Oct
30
2017
Oct
30
2017
Oct
28
2017
Oct
28
2017
Oct
28
2017
Oct
18
2017
Oct
13
2017
Oct
12
2017
Sep
01
2017
Aug
22
2017