lucee.Component
commandbox.system.modules_app.system-commands.commands.unique
Search through string input and filter duplicate lines. Only unique results will be returned. . {code:bash} cat names.txt | unique {code} . You can also get results with the occurance count preceeding each item . {code:bash} cat names.txt | unique --count {code}
| Method Summary | |
|---|---|
any
|
run([any input=''], [any count='false'])
|
| Methods inherited from class lucee.Component |
|---|
| None |
| Method Detail |
|---|
input - The piped input to be checked.count - Precede each line with the number of times that item appeared