mirror of
https://github.com/notwa/rc
synced 2024-11-05 06:29:02 -08:00
9 lines
234 B
Bash
Executable file
9 lines
234 B
Bash
Executable file
#!/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 "$eggs" -e "$eggs" -e "$eggs" -e "$eggs" \
|
|
-e 's/@//g'
|
|
}
|