Rob van der Woude's Scripting Pages

Help text for DeDup.cs

(view help text of DeDup.cs as plain text)

DeDup,  Version 1.02
Remove duplicate lines from a text file or from redirected input

Usage:   DeDup.exe  filename  [ options ]
   or:   some_command  |  DeDup.exe  [ options ]

Where:   filename      file to be investigated
         some_command  command whose Standard Output is to be investigated

Options: /C            ignore Case
         /R            Return code equals number of duplicates removed
         /S            Sort results
         /T            Trim leading and trailing whitespace from output
         /W            ignore Whitespace (any combination of tabs and/or
                       spaces will be replaced by a single space in output,
                       empty lines or lines containing only whitespace will
                       be removed from output)

Notes:   The filtered output is sent to the screen (Standard Output).
         In case of duplicate lines, only the first match is returned.
         Return code ("errorlevel") equals the number of removed
         duplicates if /R is used, -1 in case of errors, or 0 otherwise.
         This version of the program requires .NET Framework 4.5.

Written by Rob van der Woude

page last uploaded: 2022-10-05