Skip to content

Instantly share code, notes, and snippets.

@alex-pat
Created November 10, 2016 17:50
Show Gist options
  • Save alex-pat/06164826633b63e038aa126d0fcbf416 to your computer and use it in GitHub Desktop.
Save alex-pat/06164826633b63e038aa126d0fcbf416 to your computer and use it in GitHub Desktop.
random gistogram
for i in {1..10} ;do echo $((RANDOM % 80)); done | while read n ; do printf " %2d | " $n ;for ((x=0; x < n; x++)) ; do echo -n \# ; done; echo; done
for i in {1..10}
do echo $((RANDOM % 80))
done | while read n
do printf " %2d | " $n
for ((x=0; x < n; x++))
do
echo -n \#
done
echo
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment