Skip to content

Instantly share code, notes, and snippets.

@aidanharris
Created March 3, 2018 02:51
Show Gist options
  • Save aidanharris/8c589730d902269d1c8ba0f16d3356b4 to your computer and use it in GitHub Desktop.
Save aidanharris/8c589730d902269d1c8ba0f16d3356b4 to your computer and use it in GitHub Desktop.
#!/bin/bash
for i in $(seq 1 ${#@})
do
for j in $(seq 1 $(eval printf "\${#$i}"))
do
echo -e ":regional_indicator_$(eval printf "\${$i:$((${j}-1)):1}"):"
done
echo -e " "
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment