NAME ^

examples/assembly/uniq.pasm - Remove duplicate lines from a sorted file

SYNOPSIS ^

    % ./parrot uniq.pasm -o uniq.pbc
    % ./parrot uniq.pbc data.txt
    % ./parrot uniq.pbc -c data.txt

DESCRIPTION ^

Parrot implementation of uniq. Removes duplicate lines from a sorted file. You'll have to create a suitable file to "de-dup".

Command-line Options ^

-c

Precede each output line with the count of the number of times the line occurred in the input, followed by a single space

-d

Don't output lines that are not repeated in the input

-u

Don't output lines that are repeated in the input

HISTORY ^

By Leon Brocard <acme@astray.com>


parrot