Created
November 10, 2016 17:50
-
-
Save alex-pat/06164826633b63e038aa126d0fcbf416 to your computer and use it in GitHub Desktop.
random gistogram
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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