bigdata4----linux文本操作命令

tail  -f   sxt.log     监控这个文件

xargs  执行文件的命令     ls不接收标准输入   此时就需要用到xargs

echo "/" |  ls -l

取出文件的第6行的数据:head -6  sxt.log  |  tail  -1

猜你喜欢

转载自www.cnblogs.com/ryuuku/p/11237363.html