• ☆ Yσɠƚԋσʂ ☆OP
    link
    fedilink
    arrow-up
    3
    ·
    3 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}