1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-14 17:59:02 -08:00
rc/sh/scramble

10 lines
234 B
Text
Raw Normal View History

2013-10-21 01:05:07 -07:00
#!/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" \
2014-09-07 20:55:42 -07:00
-e "$eggs" -e "$eggs" -e "$eggs" -e "$eggs" \
2013-10-21 01:05:07 -07:00
-e 's/@//g'
}