Created
May 16, 2018 04:30
-
-
Save sehrgut/44bcd74175f5fee8fd2b2aac551e32c5 to your computer and use it in GitHub Desktop.
scrub nonprinting characters from the MacOS clipboard in one line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pbpaste | sed 's/[^[:print:]]//g' | pbcopy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment