Skip to content

Instantly share code, notes, and snippets.

@grahamc
Created July 5, 2019 01:02
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 grahamc/1cfa8090e252325b35d07b068c238a75 to your computer and use it in GitHub Desktop.
Save grahamc/1cfa8090e252325b35d07b068c238a75 to your computer and use it in GitHub Desktop.
#!/bin/sh
(for lib in $(cat oxygen.log | grep "No such file" | grep openat | grep ".so" | cut -d'"' -f2 | rev | cut -d/ -f1 | rev | sort | uniq); do
len=$(grep "$lib" ./oxygen.log | grep -v "No such file or directory" | wc -l)
printf "%d\t%s\n" "$len" "$lib"
done) | sort -nr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment