commandbox.system.modules_app.system-commands.commands

Class unique

lucee.Component
    extended by 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}

Class Attributes:
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Method Summary
    any run([any input=''], [any count='false'])
     
    Methods inherited from class lucee.Component
    None

    Method Detail

    run

    public any run([any input=''], [any count='false'])

    Parameters:
    input - The piped input to be checked.
    count - Precede each line with the number of times that item appeared