×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Bash
Posted by: Gerrit Viljoen
Added: Dec 3, 2014 8:42 AM
Views: 17
Tags: bash line break
Prints a line break.
  1. #!/bin/bash
  2.  
  3. width=$(stty size | cut -d ' ' -f 2)
  4. line=$(printf '%*s' ${width})
  5. echo ${line// /-}
  6.