Skip to content

Instantly share code, notes, and snippets.

@timb-machine
Created September 4, 2017 03:22
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 timb-machine/be319f5ea146d58874a1a8486688ade7 to your computer and use it in GitHub Desktop.
Save timb-machine/be319f5ea146d58874a1a8486688ade7 to your computer and use it in GitHub Desktop.
dakami_rng.html.out example
$ cat dakami_rng.html.out | awk '{print $2}' | grep "[0-9]" | perl -e 'my %foo; while (<>) { $_ =~ s/\x0a//g; $_ =~ s/\x0d//g; if ($foo{$_} == undef) { $foo{$_} = 0 } $foo{$_} ++ }; foreach $key (keys %foo) { print $key . ":" . $foo{$key} . "\n"; }' | more | sort -n:
0:391
1:409
2:397
3:379
4:389
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment