Print a full-width horizontal line using the current terminal width (custom character supported) Using printf, tr (opens in new tab)
printf '%*s\n' \"${COLUMNS:-80}\" '' | tr ' ' \"${1-_}\" - (Print a full-width horizontal line using the current terminal width (custom character supported) This is good when the other option on this site not includes ´tput´ like on minimal shell). The best command line collection on the internet, submit yours and save your favorites.
Read the original article