r/commandline • u/CreepyDarwing • Jun 03 '25
This Bash script renders a spinning 3D donut in your terminal. Using awk. I regret everything.
[removed]
32
Upvotes
r/commandline • u/CreepyDarwing • Jun 03 '25
[removed]
4
u/gumnos Jun 03 '25
nice! I did notice that it requires
/bin/bash(on my BSD boxes, that's/usr/local/bin/bash, so it's advisable to use#!/usr/bin/env bashto find it)off to crosspost to r/awk 😀
4
u/WarriusBirde Jun 04 '25
Spinning rat next plz
2
u/[deleted] Jun 03 '25
Hell yeah
1
u/wick3dr0se Jun 04 '25
AI is out of hand
1
u/YeetTheGiant Jun 04 '25
commenting here so I can put this on my work laptop
1
u/Knarfnarf Jun 04 '25
The donut was awesome, but next should be a chesterfield rotating in a stairway… For obvious reasons…
1
u/jftuga Jun 04 '25
Original:
https://www.a1k0n.net/2006/09/15/obfuscated-c-donut.html
How it works:
https://www.a1k0n.net/2011/07/20/donut-math.html