#!/bin/bash if [ find -user root ] # want to find all files and dirs that root owns then echo 1 # if root owns a dir or file then echo 1 else echo 2 # if root does not own a dir or file then echo 2 fi