From 9edd333dc5f34b9947ed185b32c63d19ca8357e2 Mon Sep 17 00:00:00 2001 From: Joe Block Date: Tue, 3 Nov 2015 09:47:35 -0800 Subject: [PATCH 1/2] Add snippet to convert Clipboard to plain text --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index c9b1658..d827bf6 100644 --- a/README.md +++ b/README.md @@ -990,6 +990,11 @@ pbpaste > whatever.txt pbpaste | sort | uniq | pbcopy ``` +#### Convert Clipboard to plain text +```bash +pbpaste | textutil -convert txt -stdin -stdout -encoding 30 | pbcopy +``` + ### FileVault #### Automatically Unlock FileVault on Restart From 8db2cce21ee1836612b5943616f073a9f3c89a75 Mon Sep 17 00:00:00 2001 From: Joe Block Date: Wed, 4 Nov 2015 09:56:24 -0800 Subject: [PATCH 2/2] Address PR feedback --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d827bf6..94b64aa 100644 --- a/README.md +++ b/README.md @@ -975,6 +975,11 @@ uptime cat whatever.txt | pbcopy ``` +#### Convert Clipboard to Plain Text +```bash +pbpaste | textutil -convert txt -stdin -stdout -encoding 30 | pbcopy +``` + #### Convert Tabs to Spaces for Clipboard Content ```bash pbpaste | expand | pbcopy @@ -990,11 +995,6 @@ pbpaste > whatever.txt pbpaste | sort | uniq | pbcopy ``` -#### Convert Clipboard to plain text -```bash -pbpaste | textutil -convert txt -stdin -stdout -encoding 30 | pbcopy -``` - ### FileVault #### Automatically Unlock FileVault on Restart