Skip to content

Instantly share code, notes, and snippets.

@pronto
Created July 12, 2016 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pronto/9c2f82bfd52cc5a0a79bcc5442bd8a21 to your computer and use it in GitHub Desktop.
Save pronto/9c2f82bfd52cc5a0a79bcc5442bd8a21 to your computer and use it in GitHub Desktop.
why zsh
#!/usr/bin/env zsh
start=1
start_2=FF
cnt=1
while true;
do
s1=`echo $start | wc -m`
col=`echo $start | sed 's/.//3g'`
col="$col"m
echo -e "$cnt:\e[$col $start"
#echo -e "$cnt:\e[$col $start \3[0m"
echo ''
start=`echo $start | sha512sum`
(( cnt=$cnt+1))
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment