dcsimg
Linux Today: Linux News On Internet Time.





How to Repeat a Character n Times in Bash

Jun 08, 2021, 15:45 (0 Talkback[s])
(Other stories by Anonymous)

What would you do if you needed to repeat a character such as - OR = multiple times while writing bash script. I needed a quick script to work on Linux, macOS, and FreeBSD server to repeat a string/character n times.  Here's how I built it.

Complete Story