Advertisement
metalx1000

Draw a box

Jan 18th, 2015
466
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.39 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. c1="\xe2\x95\x94"
  4. c2="\xe2\x95\x97"
  5. c3="\xe2\x95\x9a"
  6. c4="\xe2\x95\x9d"
  7.  
  8. side="\xe2\x95\x91"
  9. height="10"
  10.  
  11. length="50"
  12. l="\xe2\x95\x90"
  13. line=$(printf "$l%.0s" `seq 1 $length`)
  14.  
  15. #f="\xe2\x96\xa3"
  16. f=" " #blank
  17. fill=$(printf "$f%.0s" `seq 1 $length`)
  18.  
  19. echo -e "${c1}${line}${c2}"
  20. printf "${side}${fill}${side}%.0s\n" `seq 1 $height`
  21. echo -e "${c3}${line}${c4}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement