批處理指令碼 - SORT



此批處理命令從原始檔獲取輸入並按字母順序對其內容進行排序,從 A 到 Z 或從 Z 到 A。它在控制檯上列印輸出。

語法

Sort [filename]

其中 filename 是需要對其內容進行排序的檔案。

示例

@echo off 
Sort C:\tp\lists.txt
batch_script_commands.htm
廣告
© . All rights reserved.