Get last `n` lines of a huge file in Windows using PowerShell
-
You can use a command like:
Get-Content InputFile.txt -Tail n > OutputFile.txtReplace
InputFile.txtwith the file you want to get the data from. Replacenwith the amount of lines you want to extract from the file. Replace theOutputFile.txtwith what you would like the file to be named. The file will be placed wherever your current directory is in PowerShell.