1 2 3 4 5 6 7
mkdir foo touch foo/bar tar cf foo.tar foo rm -rf foo echo foo/bar >foobar.exclude busybox tar xf foo.tar foo -X foobar.exclude test -d foo -a ! -f foo/bar