THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
rank | size in bytes | log(size in bytes) | size in MB | cumulative size |
1 | 13748 | 4.138239523 | 0 | 0.00001 |
2 | 67574 | 4.829779627 | 0 | 0.00007 |
3 | 111733 | 5.04818146 | 0 | 0.00017 |
4 | 151389 | 5.18009432 | 0 | 0.00031 |
5 | 220800 | 5.343999069 | 0 | 0.0005 |
6 | 244323 | 5.387964352 | 0 | 0.00072 |
7 | 301920 | 5.479891883 | 0 | 0.00099 |
8 | 629218 | 5.798801138 | 0 | 0.00155 |
9 | 821002 | 5.914344215 | 0 | 0.00228 |
10 | 913328 | 5.960626772 | 0 | 0.00309 |
11 | 934090 | 5.970388723 | 0 | 0.00393 |
12 | 1266697 | 6.102672742 | 1 | 0.00505 |
13 | 1478078 | 6.169697353 | 1 | 0.00637 |
14 | 1625525 | 6.210993653 | 1 | 0.00782 |
15 | 1754876 | 6.244246435 | 1 | 0.00938 |
16 | 1968125 | 6.294052678 | 1 | 0.01113 |
17 | 2299860 | 6.3617014 | 2 | 0.01318 |
18 | 2381446 | 6.376840738 | 2 | 0.0153 |
19 | 2411117 | 6.382218285 | 2 | 0.01744 |
20 | 3103750 | 6.491886733 | 2 | 0.02021 |
21 | 3595598 | 6.55577113 | 3 | 0.02341 |
22 | 3832519 | 6.583484317 | 3 | 0.02682 |
23 | 4410330 | 6.644471086 | 4 | 0.03075 |
24 | 4483712 | 6.651637709 | 4 | 0.03474 |
25 | 5140143 | 6.710975201 | 4 | 0.03931 |
26 | 5545460 | 6.743937577 | 5 | 0.04425 |
27 | 5747928 | 6.759511319 | 5 | 0.04937 |
28 | 5799711 | 6.763406353 | 5 | 0.05453 |
29 | 6164167 | 6.789874396 | 5 | 0.06002 |
30 | 6373755 | 6.804395366 | 6 | 0.06569 |
31 | 6380251 | 6.804837764 | 6 | 0.07137 |
32 | 6383604 | 6.805065938 | 6 | 0.07706 |
33 | 6390510 | 6.805535519 | 6 | 0.08275 |
34 | 6392653 | 6.805681131 | 6 | 0.08844 |
35 | 6431972 | 6.808344145 | 6 | 0.09416 |
36 | 6486597 | 6.812016917 | 6 | 0.09994 |
37 | 6546630 | 6.816017796 | 6 | 0.10577 |
38 | 6773168 | 6.830791848 | 6 | 0.1118 |
39 | 6912058 | 6.839607374 | 6 | 0.11795 |
40 | 7476669 | 6.873708154 | 7 | 0.1246 |
41 | 7478437 | 6.873810839 | 7 | 0.13126 |
42 | 7523458 | 6.876417501 | 7 | 0.13796 |
43 | 7577328 | 6.879516087 | 7 | 0.14471 |
44 | 7592927 | 6.880409224 | 7 | 0.15147 |
45 | 7625151 | 6.882248448 | 7 | 0.15825 |
46 | 7731453 | 6.88826112 | 7 | 0.16514 |
47 | 7747592 | 6.889166742 | 7 | 0.17203 |
48 | 7752261 | 6.889428386 | 7 | 0.17894 |
49 | 7805450 | 6.892397946 | 7 | 0.18588 |
50 | 8072465 | 6.907006171 | 7 | 0.19307 |
51 | 8092359 | 6.908075141 | 7 | 0.20028 |
52 | 8212164 | 6.914457614 | 7 | 0.20759 |
53 | 8310383 | 6.91962104 | 7 | 0.21498 |
54 | 8586344 | 6.933808284 | 8 | 0.22263 |
55 | 8676103 | 6.938324699 | 8 | 0.23035 |
56 | 8769235 | 6.942961709 | 8 | 0.23816 |
57 | 9013610 | 6.954898763 | 8 | 0.24618 |
58 | 9058520 | 6.957057248 | 8 | 0.25425 |
59 | 9744068 | 6.988740306 | 9 | 0.26292 |
60 | 10102268 | 7.004418886 | 9 | 0.27192 |
61 | 10438717 | 7.018647124 | 9 | 0.28121 |
62 | 10529874 | 7.022423174 | 10 | 0.29058 |
63 | 11380081 | 7.056145353 | 10 | 0.30071 |
64 | 11718243 | 7.0688625 | 11 | 0.31115 |
65 | 12139280 | 7.084192929 | 11 | 0.32195 |
66 | 12150498 | 7.084594078 | 11 | 0.33277 |
67 | 15066434 | 7.178010473 | 14 | 0.34618 |
68 | 16160722 | 7.20846076 | 15 | 0.36057 |
69 | 16574799 | 7.21944827 | 15 | 0.37533 |
70 | 16714357 | 7.223089674 | 15 | 0.39021 |
71 | 17213409 | 7.235866888 | 16 | 0.40553 |
72 | 19427514 | 7.288417231 | 18 | 0.42283 |
73 | 19605613 | 7.292380426 | 18 | 0.44028 |
74 | 19889385 | 7.298621355 | 18 | 0.45799 |
75 | 21758082 | 7.337620609 | 20 | 0.47736 |
76 | 22801377 | 7.357961075 | 21 | 0.49766 |
77 | 25706639 | 7.410045299 | 24 | 0.52054 |
78 | 26454525 | 7.422499968 | 25 | 0.54409 |
79 | 30821417 | 7.488852601 | 29 | 0.57153 |
80 | 32707532 | 7.514647775 | 31 | 0.60065 |
81 | 33409793 | 7.523873785 | 31 | 0.63039 |
82 | 37731403 | 7.576702954 | 35 | 0.66398 |
83 | 49750057 | 7.696793583 | 47 | 0.70827 |
84 | 50561728 | 7.703821908 | 48 | 0.75328 |
85 | 51283479 | 7.709977479 | 48 | 0.79894 |
86 | 62864548 | 7.798405797 | 59 | 0.85491 |
87 | 70378449 | 7.847439692 | 67 | 0.91756 |
88 | 92603711 | 7.966628391 | 88 | 1 |
...
...
...
Code Block |
---|
$ find . -iname *.nar -exec ls -l {} \; | sort -n -k 5
-rw-rw---- 1 tkurc tkurc 13748 Jan 10 21:57 ./lib/nifi-hive-services-api-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 67574 Jan 10 21:56 ./lib/nifi-jms-cf-service-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 111733 Jan 10 22:01 ./lib/nifi-metrics-reporter-service-api-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 151389 Jan 10 21:50 ./lib/nifi-http-context-map-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 220800 Jan 10 22:01 ./lib/nifi-cybersecurity-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 244323 Jan 10 21:58 ./lib/nifi-slack-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 301920 Jan 10 22:01 ./lib/nifi-metrics-reporting-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 629218 Jan 10 21:54 ./lib/nifi-couchbase-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 821002 Jan 10 21:57 ./lib/nifi-spring-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 913328 Jan 10 21:55 ./lib/nifi-html-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 934090 Jan 10 21:58 ./lib/nifi-snmp-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 1266697 Jan 10 21:59 ./lib/nifi-rethinkdb-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 1478078 Jan 10 21:40 ./lib/nifi-hadoop-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 1625525 Jan 10 21:40 ./lib/nifi-standard-services-api-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 1754876 Jan 10 22:01 ./lib/nifi-redis-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 1968125 Jan 10 21:59 ./lib/nifi-windows-event-log-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 2299860 Jan 10 21:55 ./lib/nifi-riemann-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 2381446 Jan 10 22:01 ./lib/nifi-cdc-mysql-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 2411117 Jan 10 21:58 ./lib/nifi-evtx-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 3103750 Jan 10 21:54 ./lib/nifi-ambari-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 3595598 Jan 10 21:53 ./lib/nifi-social-media-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 3832519 Jan 10 22:00 ./lib/nifi-gcp-services-api-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 4410330 Jan 10 21:53 ./lib/nifi-aws-service-api-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 4483712 Jan 10 21:50 ./lib/nifi-ssl-context-service-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 5140143 Jan 10 21:54 ./lib/nifi-couchbase-services-api-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 5545460 Jan 10 21:40 ./lib/nifi-jetty-bundle-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 5747928 Jan 10 21:53 ./lib/nifi-enrich-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 5799711 Jan 10 21:54 ./lib/nifi-avro-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 6164167 Jan 10 22:01 ./lib/nifi-redis-service-api-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 6373755 Jan 10 22:01 ./lib/nifi-livy-controller-service-api-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 6380251 Jan 10 22:00 ./lib/nifi-stateful-analysis-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 6383604 Jan 10 22:00 ./lib/nifi-websocket-services-api-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 6390510 Jan 10 22:00 ./lib/nifi-websocket-processors-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 6392653 Jan 10 22:00 ./lib/nifi-tcp-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 6431972 Jan 10 21:54 ./lib/nifi-hbase-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 6486597 Jan 10 21:50 ./lib/nifi-distributed-cache-services-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 6546630 Jan 10 21:58 ./lib/nifi-mqtt-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 6773168 Jan 10 21:56 ./lib/nifi-amqp-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 6912058 Jan 10 21:56 ./lib/nifi-splunk-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 7476669 Jan 10 21:57 ./lib/nifi-beats-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 7478437 Jan 10 21:57 ./lib/nifi-lumberjack-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 7523458 Jan 10 21:53 ./lib/nifi-language-translation-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 7577328 Jan 10 21:59 ./lib/nifi-groovyx-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 7592927 Jan 10 21:50 ./lib/nifi-dbcp-service-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 7625151 Jan 10 22:00 ./lib/nifi-websocket-services-jetty-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 7731453 Jan 10 21:50 ./lib/nifi-mongodb-services-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 7747592 Jan 10 21:53 ./lib/nifi-mongodb-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 7752261 Jan 10 21:51 ./lib/nifi-kafka-0-9-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 7805450 Jan 10 21:58 ./lib/nifi-datadog-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 8072465 Jan 10 22:02 ./lib/nifi-livy-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 8092359 Jan 10 22:00 ./lib/nifi-registry-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 8212164 Jan 10 21:54 ./lib/nifi-azure-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 8310383 Jan 10 21:55 ./lib/nifi-kerberos-iaa-providers-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 8586344 Jan 10 21:51 ./lib/nifi-kafka-0-10-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 8676103 Jan 10 21:58 ./lib/nifi-site-to-site-reporting-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 8769235 Jan 10 21:55 ./lib/nifi-ldap-iaa-providers-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 9013610 Jan 10 21:51 ./lib/nifi-kafka-0-11-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 9058520 Jan 10 21:50 ./lib/nifi-lookup-services-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 9744068 Jan 10 21:51 ./lib/nifi-kafka-1-0-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 10102268 Jan 10 21:42 ./lib/nifi-provenance-repository-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 10438717 Jan 10 21:50 ./lib/nifi-record-serialization-services-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 10529874 Jan 10 21:56 ./lib/nifi-jms-processors-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 11380081 Jan 10 21:53 ./lib/nifi-hl7-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 11718243 Jan 10 21:52 ./lib/nifi-solr-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 12139280 Jan 10 21:59 ./lib/nifi-ignite-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 12150498 Jan 10 21:52 ./lib/nifi-confluent-platform-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 15066434 Jan 10 21:53 ./lib/nifi-ccda-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 16160722 Jan 10 21:57 ./lib/nifi-cassandra-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 16574799 Jan 10 21:52 ./lib/nifi-kudu-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 16714357 Jan 10 21:51 ./lib/nifi-update-attribute-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 17213409 Jan 10 21:50 ./lib/nifi-hwx-schema-registry-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 19427514 Jan 10 22:01 ./lib/nifi-poi-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 19605613 Jan 10 21:59 ./lib/nifi-email-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 19889385 Jan 10 21:51 ./lib/nifi-kafka-0-8-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 21758082 Jan 10 21:52 ./lib/nifi-kite-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 22801377 Jan 10 21:56 ./lib/nifi-elasticsearch-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 25706639 Jan 10 22:01 ./lib/nifi-parquet-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 26454525 Jan 10 22:00 ./lib/nifi-gcp-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 30821417 Jan 10 21:56 ./lib/nifi-elasticsearch-5-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 32707532 Jan 10 21:54 ./lib/nifi-flume-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 33409793 Jan 10 21:50 ./lib/nifi-hbase_1_1_2-client-service-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 37731403 Jan 10 21:40 ./lib/nifi-hadoop-libraries-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 49750057 Jan 10 21:50 ./lib/nifi-standard-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 50561728 Jan 10 21:39 ./lib/nifi-framework-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 51283479 Jan 10 21:54 ./lib/nifi-media-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 62864548 Jan 10 21:53 ./lib/nifi-aws-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 70378449 Jan 10 21:56 ./lib/nifi-scripting-nar-1.5.0.nar
-rw-rw---- 1 tkurc tkurc 92603711 Jan 10 21:58 ./lib/nifi-hive-nar-1.5.0.nar
|
Code Block | ||||
---|---|---|---|---|
| ||||
while(<STDIN>){
chomp; chomp;
$cum += $_;
push @vals, $_;
}
$sum = 0;
foreach $val (sort {$a <=> $b} @vals){
printf "%.5f\n", $val/$cum + $sum;
$sum += $val/$cum;
}
|
...