☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.ml · 3 years agoecho "Is this real life?" | cowsay -n | cowsay -n | cowsay -n | cowsay -nlemmy.mlimagemessage-square4fedilinkarrow-up121arrow-down11
arrow-up120arrow-down1imageecho "Is this real life?" | cowsay -n | cowsay -n | cowsay -n | cowsay -nlemmy.ml☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.ml · 3 years agomessage-square4fedilink
minus-square☆ Yσɠƚԋσʂ ☆@lemmy.mlOPlinkfedilinkarrow-up2·3 years agobonus 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}
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}