☆ Yσɠƚԋσʂ ☆ to Programmer Humor@lemmy.ml • 2 years agoecho "Is this real life?" | cowsay -n | cowsay -n | cowsay -n | cowsay -nlemmy.mlimagemessage-square4fedilinkarrow-up125arrow-down10
arrow-up125arrow-down1imageecho "Is this real life?" | cowsay -n | cowsay -n | cowsay -n | cowsay -nlemmy.ml☆ Yσɠƚԋσʂ ☆ to Programmer Humor@lemmy.ml • 2 years agomessage-square4fedilink
minus-square☆ Yσɠƚԋσʂ ☆OPlinkfedilink2•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}