|
|
1.1 ! root 1: ! 2: ! 3: uniq Command uniq ! 4: ! 5: ! 6: ! 7: ! 8: Remove/count repeated lines in a sorted file ! 9: ! 10: uunniiqq [-ccdduu] [-_n] [+_n] [_i_n_f_i_l_e[_o_u_t_f_i_l_e]] ! 11: ! 12: uniq reads input line by line from infile and writes all non- ! 13: duplicated lines to outfile. The input file must be sorted. ! 14: uniq uses the standard input or output if either infile or out- ! 15: file is omitted. The following describes the available options: ! 16: ! 17: -cc Print each line once, discarding duplicate lines; before ! 18: each line, print the number of times it appears within the ! 19: file. ! 20: ! 21: -dd Print only lines that are duplicated within the file; print ! 22: each line only once; do not print any counts. ! 23: ! 24: -uu Print only lines that are _n_o_t duplicated within the file. ! 25: ! 26: uniq by default behaves as if both -uu and -dd were specified, so ! 27: it prints each unique line once. ! 28: ! 29: Optional specifiers allow uniq to skip leading portions of the ! 30: input lines when comparing for uniqueness. ! 31: ! 32: -_n Skip n fields of each input line, where a field is any num- ! 33: ber of non-white space characters surrounded by any number ! 34: of white space characters (blank or tab). ! 35: ! 36: +_n Skip n characters in each input line, after skipping fields ! 37: as above. ! 38: ! 39: ***** See Also ***** ! 40: ! 41: comm, commands, sort ! 42: ! 43: ! 44: ! 45: ! 46: ! 47: ! 48: ! 49: ! 50: ! 51: ! 52: ! 53: ! 54: ! 55: ! 56: ! 57: ! 58: ! 59: ! 60: ! 61: ! 62: ! 63: ! 64: COHERENT Lexicon Page 1 ! 65: ! 66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.