☆ Yσɠƚԋσʂ ☆ to Programmer Humor · 2 years agoecho "Is this real life?" | cowsay -n | cowsay -n | cowsay -n | cowsay -nimagemessage-square4fedilinkarrow-up126arrow-down10
arrow-up126arrow-down1imageecho "Is this real life?" | cowsay -n | cowsay -n | cowsay -n | cowsay -n☆ Yσɠƚԋσʂ ☆ to Programmer Humor · 2 years agomessage-square4fedilink
minus-square☆ Yσɠƚԋσʂ ☆OPlinkfedilinkarrow-up3·2 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}