Skip to content

Instantly share code, notes, and snippets.

@levigroker
Last active January 8, 2022 19:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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
# levigroker@gmail.com
# 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