News for hackers. Stuff that matters.
Re:Pure sh bible – Posix sh alternatives to external processes by emmelaich on Monday October 19, 2020 @09:20PM (#24833085)
And you can of course put the whole chessboard in a string ...

   blackwhite=$(tput rev; echo -n " "; tput sgr0; echo -n " ")
   whiteblack=$(tput sgr0; echo -n " "; tput rev; echo -n " ") 
   row_odd=$(for col in {1..4}; do echo -n "$whiteblack"; done; echo)
   row_even=$(for col in {1..4}; do echo -n "$blackwhite"; done; echo)
   chessboard=$(for i in {1..4}; do echo "$row_odd"; echo "$row_even"; done;tput sgr0)

There are no comments on this comment yet.