pbpaste
Send the contents of the clipboard to stdout. tldr-pages
On macOS 1 Sigma rule name it
macOS
Send the contents of the clipboard to stdout. Comparable to pressing <Cmd v> on the keyboard.
Write the contents of the clipboard to a file
pbpaste >path/to/fileIdentifyTrips 1 Sigma rule: mediumClipboard Data Collection Via Pbpaste by Daniel Cortez
Use the contents of the clipboard as input to a command
pbpaste | grep search_stringIdentifyTrips 1 Sigma rule: mediumClipboard Data Collection Via Pbpaste by Daniel Cortez