bashle Posted on 2022/02/23 by Carl Robitaille bashlen=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$le[0m"||printf "$l";done;echo;[[ "$g" == "$w" ]]&&break;grep –color=always "[$w]" <<<"$g";done;echo ans: $w pic.twitter.com/rqF9sy3rZP— Command Line Magic (@climagic) February 22, 2022