From 1f519900ab462275d1d7f36f6213b54044e4664f Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Mon, 21 Oct 2013 01:05:07 -0700 Subject: [PATCH] basic predictable text scrambler --- sh/scramble | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 sh/scramble diff --git a/sh/scramble b/sh/scramble new file mode 100644 index 0000000..31586e0 --- /dev/null +++ b/sh/scramble @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +scramble() { + local eggs='s/@\(\w\)\(\w\)\(\w\)/@\3\1@\2/g' + sed \ + -e 's/\b\w/&@/g' \ + -e "$eggs" -e "$eggs" -e "$eggs" -e "$eggs" \ + -e 's/@//g' +}