this post was submitted on 16 Jun 2022
25 points (100.0% liked)

Programmer Humor

32018 readers
1007 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 4 comments
sorted by: hot top controversial new old
[–] testman@lemmy.ml 4 points 2 years ago
[–] weex@lemmy.ml 3 points 2 years ago* (last edited 2 years ago) (1 children)
[–] yogthos@lemmy.ml 1 points 2 years ago
[–] yogthos@lemmy.ml 2 points 2 years ago

bonus version

#!/bin/bash

cowfile=cow$$
echo "" > ${cowfile}

for line in "is this the real life?" \
   "is this just fantasy?" \
   "any way the wind blows" \
   "doesn't really matter" 
do
  cow=`cat ${cowfile}`
  echo -e "${cow}\n${line}" | cowsay -n > ${cowfile}
done

cat ${cowfile}