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
12
2017
Oct
08
2017
Dec
29
2016
Dec
07
2016
Aug
04
2016
Apr
03
2013
Feb
06
2013