多字段排序sort命令有多字段排序功能sort-t':'-k4n-k3r-n-u/etc/passwd-t指定':'为分隔符(field-separator);-k指定按第几个字段进行排序;-k4n表示按第四个字段顺序排列,-k3r表示在原先排序的基础上按第三个字段逆序排列;(n表示顺序,...
基于6个网页-相关网页
FDS FielD Separator 字段分隔符
Internal Field Separator 内部字段分隔符
FS Field Separator 字段分隔符
operand field separator [计] 操作数字段分隔符
interchange field separator 交换栏分隔符
field separator character 字段分隔字符
oil-field separator 油气分离器
Output field separator 输出域分隔符
Unless you specify a different field separator, fields are delimited by blanks or tabs.
除非您指定了一个不同的字段分隔符,否则将使用空格或制表符分隔字段。
It's generally best to set the field separator inside the script itself, simply because it means you have one less command line argument to remember to type.
一般而言,最好在脚本内部设置字段分隔符,因为这样可以少输入一个命令行参数。
The difference between these two methods has to do with how we set the field separator.
两种方法的区别在于如何设置字段分隔符。
应用推荐