man bash | sed 's/./&\n/g' | awk -v mx=$COLUMNS -v my=$LINES 'BEGIN{x=y=e=f=1}{if(x==mx||!x){e*=-1};if(y==my||!y){f*=-1};x+=e;y+=f;printf "\033[%s;%sH%s",y,x,$1;for (a=0;a<400000;a++){}}' # Print the bash man page in diagonal lines across the screen.
Nerd snipe
An image with only: /bin/ed, /lib/musl.so, and /tmp.
Comes out to 640kB, which should be enough for anybody.
FROM alpine AS builder
RUN apk add ed
FROM scratch
COPY --from=builder /tmp /tmp
COPY --from=builder /lib/ld-musl-x86_64.so.1 /lib/
COPY --from=builder /bin/ed /bin/
ENTRYPOINT ["/bin/ed"]
Someone on internet.