Skip to content

Instantly share code, notes, and snippets.

@levigroker
Last active January 8, 2022 19:38
Show Gist options
  • Save levigroker/cd252cc656234dd8b19bfd4d96255a5c to your computer and use it in GitHub Desktop.
Save levigroker/cd252cc656234dd8b19bfd4d96255a5c to your computer and use it in GitHub Desktop.
A BBEdit Text Filter script to take textual input and produce Base64 encoded text of the same.
#!/bin/bash
#
# Base64 Encode
# https://gist.github.com/levigroker/cd252cc656234dd8b19bfd4d96255a5c
#
# A BBEdit Text Filter script to take textual input and produce Base64 encoded text of the
# same.
# See https://www.bbeditextras.org/text-filters/
# Levi Brown
# @levigroker
# [email protected]
# 2022-01-07
##
IN=$(tee)
OUT=$(echo -n "$IN" | base64)
echo -n "${OUT}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment