Windows equivalent of the 'tail' command

前端 未结 21 3044
长情又很酷
长情又很酷 2020-11-28 01:48

Is there a way to simulate the *nix tail command on the Windows command line? I have a file and I want a way to snip off the first n lines of text. For example:

21条回答
  •  忘掉有多难
    2020-11-28 02:36

    If you want the head command, one easy way to get it is to install Cygwin. Then you'll have all the UNIX tools at your disposal.

    If that isn't a good solution, then you can try using findstr and do a search for the end-of-line indicator.

    findstr on MSDN: http://technet.microsoft.com/en-us/library/bb490907.aspx

提交回复
热议问题