如何使用批处理脚本删除文本的前3行和最后3行?
Windows 命令“net view /domain”打印结果如下:
Domain
-------------------------------------------------------------------------------
MSHOME
WORKGROUP
Command Success
如何使用批处理脚本删除输出文本的前 3 行和后 3 行?
Windows command "net view /domain" prints result as followed:
Domain
-------------------------------------------------------------------------------
MSHOME
WORKGROUP
Command Success
How can I remove the first and last 3 lines of the output text using a batch script?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我会使用 unix 工具 head 和/或 tail
你有 cygwin 或任何其他允许你使用 unix 命令的工具包吗
windows 有一个非常糟糕的命令列表
i would use the unix tools head and/or tail
do you have cygwin or any other toolkit that allows you to use unix commands
windows has a vey poor command list