The problem with this command is it prints the path of file i want twice. I did try the "-q" option of the grep command. It generates an error "invalid option". i guess the shell i am using must be an older version or i am just not sure. is there any way, i can print the file path only once?