名稱:sort
位置:/usr/bin/sort
權(quán)限:所有用戶
用法: sort [OPTION]... [FILE]...
sort [OPTION]... --files0-from=F
選項:
-b --ignore-leading-blanks 忽略最前面的空格
-f --ignore-case fold lower case to upper case characters 忽略字母的大小寫
-M --month-sort compare (unknown) < `JAN' < ... < `DEC' 以月份的名字來排序
-n --numeric-sort compare according to string numerical value 以純數(shù)字排序 (默認以文本類型排序)
-t --field-separator=SEP use SEP instead of non-blank to blank transition 指定分隔符,默認以TAB為分隔符
-k --key=POS1[,POS2] start a key at POS1 (origin 1), end it at POS2 (default end of line). See POS syntax below
指定排序的區(qū)間
以冒號":"作為分隔符的第一個字段排序
新聞熱點
疑難解答
圖片精選