Skip to content

Instantly share code, notes, and snippets.

@frafra
Created February 8, 2023 08:14
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 frafra/0b889c6b28fa3563d9abc9b29381624c to your computer and use it in GitHub Desktop.
Save frafra/0b889c6b28fa3563d9abc9b29381624c to your computer and use it in GitHub Desktop.
debug tricks
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