Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

10.0;dldupl (delete_duplicate_lines), revision 1.0, 88/01/21
dldupl (delete_duplicate_lines) -- Strip repeated lines from a file.
usage:  dldupl [-c] [pathname ...]



DESCRIPTION
     dldupl reads the input file(s), comparing adjacent lines.  Second and
     succeeding copies of repeated lines are removed; the remaining lines are
     written to standard output.


ARGUMENTS
     pathname (optional)
          Specify input file.  Multiple filenames permitted; separate names
          with blanks.

          Default if omitted:  read standard input


OPTIONS
     -c   Write number of occurrences of each line to standard output.

EXAMPLES
     Suppose you have two alphabetized dictionary files.  To create one
     dictionary file containing the words from both, use:

     $ srf -m dict1 dict2 | dldupl >dict.new

     This merges the words from the two files (srf -m), then deletes any
     duplicate words and saves the result in the new dictionary.

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026