⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 uniq.1

📁 操作系统设计与实现源码
💻 1
字号:


UNIQ(1)                   Minix Programmer's Manual                    UNIQ(1)


NAME
     uniq - delete consecutive identical lines in a file

SYNOPSIS
     uniq [-cdu] [-n] [+n] [input [output]]

OPTIONS

     -c   Give count of identical lines in the input

     -d   Only duplicate lines are written to output

     -u   Only unique lines are written to output

     -n   Skip the first n columns when matching

     +n   Skip the first n fields when matching

EXAMPLES

     uniq +2 file        # Ignore first 2 fields when comparing

     uniq -d inf outf    # Write duplicate lines to outf

DESCRIPTION

     Uniq examines a file for consecutive lines that are identical.   All  but
     duplicate entries are deleted, and the file is written to output.  The +n
     option skips the first n fields, where a field is defined  as  a  run  of
     characters  separated  by  white  space.  The -n option skips the first n
     spaces.  Fields are skipped first.

SEE ALSO
     sort(1).


















                                                                             1

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -