Guest User

Untitled

a guest
Jan 13th, 2015
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.55 KB | None | 0 0
  1. red=$(tput setaf 1)
  2. green=$(tput setaf 2)
  3. blue=$(tput setaf 3)
  4. reset=$(tput sgr0)
  5.  
  6. This is ok:
  7. echo foo|cowsay
  8.  _____
  9. < foo >
  10.  -----
  11.         \   ^__^
  12.          \  (oo)\_______
  13.             (__)\       )\/\
  14.                 ||----w |
  15.                 ||     ||
  16.  
  17. Here foo is green as expected but the header and footer of cloud is to long:
  18. echo ${green}foo${reset}|cowsay
  19.  ________________
  20. < foo >
  21.  ----------------
  22.         \   ^__^
  23.          \  (oo)\_______
  24.             (__)\       )\/\
  25.                 ||----w |
  26.                 ||     ||
Advertisement
Add Comment
Please, Sign In to add comment