1、从文件尾到文件头一页一页的显示内容
tac xxx.log |more //tac命令与cat命令相反,从文件尾开始读文件
2、shell下科学计算工具bc
echo "scale=5; 1/32"|bc //scale用于指定计算结果的精度
3、shell变量赋值
line1=`wc -l xxx.log` //变量赋值=前后不要有空格,加两个``可以将命令执行结果转换成变量
或者line1=$(wc -l xxx.log`)