Advertisement
andmalv

[Script] Rectangulo con relleno

Sep 29th, 2015
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.38 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. lado="\xe2\x95\x91"
  9. altura="10"
  10. largo="50"
  11. l="\xe2\x95\x90"
  12. linea=$(printf "$l%.0s" `seq 1 $largo`)
  13.  
  14. Relleno="_"
  15. relleno=$( printf "${Relleno}%.0s" $(seq  $largo) )
  16.  
  17. echo -e "${c1}${linea}${c2}"
  18. printf "${lado}${relleno}${lado}%.0s\n" $(seq $altura)
  19. echo -e "${c3}${linea}${c4}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement