#!/bin/bash width=$(stty size | cut -d ' ' -f 2) line=$(printf '%*s' ${width}) echo ${line// /-}