最佳答案
我必须查看一个大文件(典型大小为500MB-2GB)的最后几行。我正在寻找一个相当于Unix命令tail
Windows Powershell。一些可供选择的方法是,
http://tailforwin32.sourceforge.net/ < a href = " http://tailforwin32.sourceforge.net/ " > < / >
而且
Get-Content [filename] | Select-Object -Last 10
For me, it is not allowed to use the first alternative, and the second alternative is slow. Does anyone know of an efficient implementation of tail for PowerShell.