snipplets:print_horizontal_line

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
snipplets:print_horizontal_line [2015/10/22 21:11]
greycat variable length with modal line-drawing characters
snipplets:print_horizontal_line [2018/05/09 23:37] (current)
pdeyoreo added missing newline between sections "The iterative way" and "The simple printf way"
Line 28: Line 28:
 echo echo
 </​code>​ </​code>​
 +
 ===== The simple printf way ===== ===== The simple printf way =====
 This one uses the ''​printf''​ command to print an **empty** field with a **minimum field width** of 20 characters. The text is padded with spaces, since there is no text, you get 20 spaces. The spaces are then converted to ''​-''​ by the ''​tr''​ command. This one uses the ''​printf''​ command to print an **empty** field with a **minimum field width** of 20 characters. The text is padded with spaces, since there is no text, you get 20 spaces. The spaces are then converted to ''​-''​ by the ''​tr''​ command.
  • snipplets/print_horizontal_line.1445548279.txt
  • Last modified: 2015/10/22 21:11
  • by greycat