使用powershell-ise读取大文件

需求:

打开一个比较大的txt,比如超过500M,正常的话notepad++和windows自带的txt都是没办法进行直接打开的,这个使用需要使用powershell进行打开。

使用方法:

读取整个文件txt文件

Get-content '.\test.txt'

按行读取文件(读取前100行)

Get-content -TotalCount 100 '.\1.txt'

猜你喜欢

转载自blog.csdn.net/weixin_39997829/article/details/129671989