dotfiles/.local/bin/scripts/tracefile

9 lines
222 B
Plaintext
Raw Normal View History

#!/bin/sh
2022-03-29 11:51:18 +00:00
while true; do
case $1 in
(-e) filter="\|ENOENT"; shift;;
(*) break;;
esac
done
strace --follow-forks -e trace=file "$@" 2>&1 | grep -v "\(newfstatat$filter\)" | cut -d'"' -f2 | grep -v "\(.so\|/dev/\)" | less