add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

View File

@@ -1,25 +1,25 @@
# uniq
> 输出输入或文件中的唯一行。
> 因为它检测相邻的重复行,所以需要先对它们进行排序。
> 更多信息:<https://www.gnu.org/software/coreutils/uniq>.
> 因为它检测相邻的重复行,所以我们需要先对它们进行排序。
> 更多信息:<https://www.gnu.org/software/coreutils/uniq>
- 仅显示每行一次:
- 每行显示一次:
`sort {{路径/到/文件}} | uniq`
`sort {{path/to/file}} | uniq`
- 仅显示唯一行:
- 仅显示唯一行:
`sort {{路径/到/文件}} | uniq -u`
`sort {{path/to/file}} | uniq -u`
- 仅显示重复行:
- 仅显示重复行:
`sort {{路径/到/文件}} | uniq -d`
`sort {{path/to/file}} | uniq -d`
- 显示每行的出现次数及其内容
- 显示每行的出现次数及该行
`sort {{路径/到/文件}} | uniq -c`
`sort {{path/to/file}} | uniq -c`
- 显示每行的出现次数,按出现次数从高到低排序:
- 显示每行的出现次数,按出现频率排序:
`sort {{路径/到/文件}} | uniq -c | sort -nr`
`sort {{path/to/file}} | uniq -c | sort -nr`