We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sort
-b 忽略每行前面开始出的空格字符。 -c 检查文件是否已经按照顺序排序。 -f 排序时,忽略大小写字母。 -M 将前面3个字母依照月份的缩写进行排序。 -n 依照数值的大小排序。 -o<输出文件> 将排序后的结果存入指定的文件。 -r 以相反的顺序来排序。 -t<分隔字符> 指定排序时所用的栏位分隔字符。 -k 选择以哪个区间进行排序。
当 ids.txt 里面包含较多重复的行时,可以使用 sort -u 去重复
sort -u
cat ids.txt|sort -u
sort 参数: -u, --unique with -c, check for strict ordering; without -c, output only the first of an equal run
du -h -d 1 .|sort -hr
The text was updated successfully, but these errors were encountered:
No branches or pull requests
sort 排序工具
sort
常用参数UseCase
去重复
当 ids.txt 里面包含较多重复的行时,可以使用
sort -u
去重复文件大小排序
The text was updated successfully, but these errors were encountered: