BAT file to read and copy bottom 16 lines from a text file to another one?

前端 未结 3 2055
庸人自扰
庸人自扰 2020-12-12 02:30

I need to copy the bottom 16 lines from a text file to another text file. I need to do this procedure for all clients. At the client\'s location the text file will be common

3条回答
  •  -上瘾入骨i
    2020-12-12 03:05

    You can download DOS ports of most Unix commands (for example here - pick any set of commands you like that includes tail)

    After downloading, simply use tail -16 filename.txt

    The benefit (to offset the effort of downloading/unpacking) is that you get a whole BUNDLE of really good Unix command line tools to use.

提交回复
热议问题