Created
February 8, 2023 08:14
-
-
Save frafra/0b889c6b28fa3563d9abc9b29381624c to your computer and use it in GitHub Desktop.
debug tricks
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
function read_strace_file() { | |
strace --trace=file "$@" |& | |
sed --quiet 's;.*"\(/[^"]*\)".*;\1;p' | | |
sort --unique | | |
fzf --scheme=path | | |
xargs --no-run-if-empty less | |
} | |
export read_strace_file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment