I have a huge file with almost 1M lines. I want to create a histogram based on the contents of the file. The values in the file would look something like this:
0.0488
-0.0342
0.0345
-0.0524
-0.0503
-0.0556
-0.0529
-0.0441
-0.0433
-0.0439
-0.0416
............
The histogram should look like this (this output is unrelated to the contents above, its just an example)
[ -0.09200 -0.07200] (250) ***********
[ -0.07200 -0.05200] ( 69) ***
[ -0.05200 -0.03200] (938) ****************************************
[ -0.03200 -0.01200] (889) **************************************
[ -0.01200 0.00800] ( 0)
[ 0.00800 0.02800] ( 0)
[ 0.02800 0.04800] ( 0)
[ 0.04800 0.06800] ( 0)
[ 0.06800 0.08800] ( 97) *****
[ 0.08800 0.10800] ( 61) ***