标题:
如何显示文件的最后一行?
[打印本页]
作者:
wingofsea
时间:
2006-5-24 15:13
标题:
如何显示文件的最后一行?
如何写batch文件或者使用dos命令显示 文件的最后一行?
如:
showLastLine.bat samle.txt
"this is the last line of sample file."
作者:
asbai
时间:
2006-5-27 16:42
tail -n1 sample.txt
tail是标准posix命令,但不是标准dos命令,其dos版本需要另外下载,详见下载区中:dos下的linux环境~
BTW: 此贴貌似发错了区
欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/)
Powered by Discuz! 2.5