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