the simplest one-command solution is to use Powershell Get-Content.
N – number of lines.
From the begining of file:
Get-Content -Head N file.txt
From the end of file:
Get-Content -Tail N file.txt
the simplest one-command solution is to use Powershell Get-Content.
N – number of lines.
From the begining of file:
Get-Content -Head N file.txt
From the end of file:
Get-Content -Tail N file.txt