Is there a way to generate a border around a given string in Bash using characters like -
and |
and automatically expand to the length of the string? The given string should not include EOF sequences and be removed when processed.
echo "------------------"
echo "| External Drive |"
echo "------------------"