我有一个powershell脚本,它读取文件内容,对其进行排序并将输出写入新文件.以下是脚本:
get-content $ inputFile | sort> $ sortedFile
文件中的输出正确排序,但输出文件($ sortedFile)比输入文件($ inputFile)大两倍.注意:输出文件中没有重复或额外的行.
任何关于此的帮助或想法都会有所帮助.
sorting powershell powershell-2.0 powershell-1.0 powershell-3.0
powershell ×1
powershell-1.0 ×1
powershell-2.0 ×1
powershell-3.0 ×1
sorting ×1