Hi,
I would like to ask if someone know how to test a files if exist the file is a nfs mount ufsdump archive file..
i used the test operator -f -a h almost all test operator but i failed
file1=ufs_root_image.dump
[ <-f,-a,h,> /tmp/package/$file ] || echo "files doesn't exist && exit 1
the false file1 is working but the true file1 i mean if i put a file1 correctly it will not echo file doesn't exist thats the good part but it will exit in error code 1..
I dont know where the problem or any other way to accomplish my task..
thanks for any input if any..