#!/usr/bin/env bash len=4 for text in 'meow' 'rawr' 'nya' ':3'; do printf '%s\033[%bG' "$text" $((len + 2)) echo ':3' done