dotfiles/.local/bin/scripts/tracefile
2022-03-29 13:51:18 +02:00

8 lines
222 B
Bash
Executable file

#!/bin/sh
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