#!/bin/bash
file=$1
while true; do
	if [ -e "$file" ]; then
		p "$file"
	fi
	if [ "$PWD" = / ]; then
		break
	fi
	cd ..
done
