Public Service Announcement: If you need to get just the text part of the macOS ...
Dr. Juande Santander-Vela @juandesant@mathstodon.xyz
Public Service Announcement: If you need to get just the text part of the macOS clipboard, you can type in the terminal:
```bash
$ pbpaste | pbcopy
```
`pbpaste` always select first the text version of the clipboard, so then `pbcopy` gets only that part back in the clipboard.
On my Mac, I have the following alias in `.zshrc`:
```bash
alias pastetxt='pbpaste | pbcopy ; pbpaste'
```
That way, I get the text part on the clipboard, but I also get to see the clipboard contents.
This is specially useful when you copy a link from HTML/Rich Text-based content, but you want to have the URL, not the full link. If you just paste text (Command-Shift-V), it will paste the text that contained the link, not the link.
Hope that was also useful for you!
#PSA #PublicServiceAnnouncement #macOS #pbpaste #pbcopy #ClipboardManagement