** 查看文件前200行
head -100 test.log
** 查看文件后200行
tail -200 test.log
** 查看中间200行
sed -n ‘100,200p’ test.log
** 输出到文件
tail -200 test.log >tail200.log
** 查看文件前200行
head -100 test.log
** 查看文件后200行
tail -200 test.log
** 查看中间200行
sed -n ‘100,200p’ test.log
** 输出到文件
tail -200 test.log >tail200.log