Findout path

hi
Friends,pls help me ,
1.I have one directory,in that directory i have one path like /user/bin/perl
like this.
2.how to find out that path and how to know the that path is existed or not in
that directory.

3.can u people give me one shellscript for this scenario.

Regards
vasu

The question isn't clear.

If you want to find the current directory, the pwd command will give it.

If you want to know if a path exists and is a directory, you can test it something like this (note that you probably mean /usr/, not /user/):

#!/bin/sh
DIR=/usr/bin/perl
if [ -d "$DIR" ]; then
    echo "Yes, $DIR is a directory"
fi