dcsimg
 

How to Repeat a Character n Times in Bash

Tuesday Jun 8th 2021 by Anonymous

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.

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

Home
Mobile Site | Full Site