Created
July 5, 2019 01:02
-
-
Save grahamc/1cfa8090e252325b35d07b068c238a75 to your computer and use it in GitHub Desktop.
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
#!/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