Skip to content

Instantly share code, notes, and snippets.

@victor-oliveira1
Created March 22, 2023 13:14
Show Gist options
  • Save victor-oliveira1/238fe5f114b08b730621b9c7cf20db67 to your computer and use it in GitHub Desktop.
Save victor-oliveira1/238fe5f114b08b730621b9c7cf20db67 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# String sequencer
# Example: ~$ ./strseq.sh BLA 3
# BLABLABLA
STRING="${1}"
TIMES="${2}"
while read i; do
echo -ne "${STRING}"
done < <(seq "${TIMES}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment