bash 统计文件行数
#假设文件名是:fortest.gtf
declare -i fileLines
fileLines=`sed -n '$=' fortest.gtf`
echo $fileLines
#---------------------
linesCount=0
let linesCount=($fileLines/20+1)*2
#假设文件名是:fortest.gtf
declare -i fileLines
fileLines=`sed -n '$=' fortest.gtf`
echo $fileLines
#---------------------
linesCount=0
let linesCount=($fileLines/20+1)*2