Skip to content

Instantly share code, notes, and snippets.

@cjgk
Last active August 29, 2015 14:15
Show Gist options
  • Save cjgk/b1cec59e466a0c2f7ec5 to your computer and use it in GitHub Desktop.
Save cjgk/b1cec59e466a0c2f7ec5 to your computer and use it in GitHub Desktop.
for n in 1 2 3 4 5 4 3 2 1; do
for x in $(eval echo {1..$((6-n))}); do printf '-'; done
for x in $(eval echo {1..$n}); do printf '++'; done
for x in $(eval echo {1..$((6-n))}); do printf '-'; done
echo '';
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment