Skip to content

Commit

Permalink
added unescape script
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Christofilopoulos committed Feb 25, 2020
1 parent c27461b commit d5bcd96
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ echo -n $dest</string>
{"imagefile":"json.png","title":"json","arg":"./to_json.sh","subtitle":"Convert to nice json"},
{"imagefile":"b64.png","title":"base64","arg":"./base64.sh","subtitle":"Convert to and from base64"},
{"imagefile":"redact.png","title":"redact","arg":"./redact.sh","subtitle":"Remove sensitive information"},
{"imagefile":"redact.png","title":"unescape","arg":"./unescape.sh","subtitle":"Removed escaped characters"},
{"imagefile":"update.png","title":"update","arg":"update","subtitle":"Update to the latest and greatest"}
]</string>
<key>keyword</key>
Expand Down
8 changes: 8 additions & 0 deletions unescape.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#! /usr/bin/env bash
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
set -euo pipefail
IFS=$'\n\t'

pbpaste | sed 's!\\"!"!g'

exit 0

0 comments on commit d5bcd96

Please sign in to comment.