Command Line Magic on Nostr: bashle n=1;w=$(look .|egrep "^\w{5}$"|shuf|head -1);for i in {1..6};do read ...
bashle
n=1;w=$(look .|egrep "^\w{5}$"|shuf|head -1);for i in {1..6};do read -p"$((n++))? " g;for i in $(seq 0 ${#g});do l=${g:$i:1};[[ $l == ${w:$i:1} ]]&&printf "\e[42m$l\e[0m"||printf "$l";done;echo;[[ "$g" == "$w" ]]&&break;grep --color=always "[$w]" <<<"$g";done;echo ans:\ $w
Published at
2022-02-22 14:58:43Event JSON
{
"id": "620674f9e61b21dcd0d97e721d2e1c68a07cbf2b41910e45b0a6dfcd77a4dc47",
"pubkey": "f5f1075f3fad1755cef1ef9024d53eafd24ea460383319ffb9949f3b6a3cde1a",
"created_at": 1645541923,
"kind": 1,
"tags": [
[
"t",
"g"
],
[
"proxy",
"https://mastodon.social/users/climagic/statuses/107842235485237031",
"activitypub"
]
],
"content": "bashle\nn=1;w=$(look .|egrep \"^\\w{5}$\"|shuf|head -1);for i in {1..6};do read -p\"$((n++))? \" g;for i in $(seq 0 ${#g});do l=${g:$i:1};[[ $l == ${w:$i:1} ]]\u0026\u0026printf \"\\e[42m$l\\e[0m\"||printf \"$l\";done;echo;[[ \"$g\" == \"$w\" ]]\u0026\u0026break;grep --color=always \"[$w]\" \u003c\u003c\u003c\"$g\";done;echo ans:\\ $w\n\nhttps://files.mastodon.social/media_attachments/files/107/842/232/396/422/109/original/daeb277b5e0792fa.png",
"sig": "c5d040e0079807d9c11a0389cf41cd26806189d5c028ad423b5281e018601ed3dd7ba6ad949bded1f45a6589d803b3bba0a86ff07ef5ef4464a9c6eba83f2291"
}