Run any standard in/out through ecg
:
# output: \[02/Nov/2020:21:50:22 \+0000\]
ecg '[02/Nov/2020:21:50:22 +0000]'
# outputs \[02/Nov/2020:21:50:22 \+0000\] to MacOS clipboard
ecg '[02/Nov/2020:21:50:22 +0000]' | pbcopy
# output: escapes characters in example.txt
cat example.txt | ecg
# outputs escapes characters in example.txt and outputs to MacOS clipboard
cat example.txt | tr -d '\n' | ecg | pbcopy
ecg
does not account for bash/history escaping, so make sure to use single quotes.
MIT. See LICENSE
for more details.