Clipboard/CLI Integration

Usage

In Cygwin

getclip | sort -u
ls -al | putclip

In macOS

pbpaste | sort -u
ls -al | pbcopy

In generic X11 (using xclip)

xclip -o | sort -u
ls -al | xclip

Note that X has a somewhat funky notion of what a “clipboard” actually is, so the above may require some tweaking depending on your desktop environment.