Rich Lafferty 🐀 on Nostr: $ a8e () { LEN=$(( $(echo -n $1 | wc -c) - 2)); echo $1 | sed ...
$ a8e () { LEN=$(( $(echo -n $1 | wc -c) - 2)); echo $1 | sed "s/^\(.\).*\(.\)$/\1$LEN\2/"; }
$ e9e () { LEN=$(echo $1 | sed 's/^.\(.*\).$/\1/'); GREP=$(echo $1 | sed "s/^\(.\).*\(.\)$/^\1.{$LEN}\2$/"); grep -E "$GREP" /usr/share/dict/words; }
(pardon the lack of formatting, here’s a gist alternative:
https://gist.github.com/wlonkly/348910a0a40fc63dcca2250c758b0a34)
Published at
2023-09-01 00:01:08Event JSON
{
"id": "a854a59b41a7295a536f17b65610d41319597ab0d7acce9dbd644e838b5ffc9f",
"pubkey": "f01a9bd950bbf7aa88be156f7b7c36d0bc2a5c2fcb26a20aa2b96aa216997663",
"created_at": 1693526468,
"kind": 1,
"tags": [
[
"proxy",
"https://hachyderm.io/users/mendel/statuses/110986950629321966",
"activitypub"
]
],
"content": "$ a8e () { LEN=$(( $(echo -n $1 | wc -c) - 2)); echo $1 | sed \"s/^\\(.\\).*\\(.\\)$/\\1$LEN\\2/\"; }\n\n$ e9e () { LEN=$(echo $1 | sed 's/^.\\(.*\\).$/\\1/'); GREP=$(echo $1 | sed \"s/^\\(.\\).*\\(.\\)$/^\\1.{$LEN}\\2$/\"); grep -E \"$GREP\" /usr/share/dict/words; }\n\n(pardon the lack of formatting, here’s a gist alternative: https://gist.github.com/wlonkly/348910a0a40fc63dcca2250c758b0a34)",
"sig": "2345730ce28e9adab1c1b62ded2ce6b822e287a9194e5974eece48791f72d7b7194c060fc1e5b47f2827d87a530fbcaf57e697325a5396eaac3ee793c2845d0a"
}