grep: can't open /usr/dict/words

Hi All,

If I use the "/usr/dict/words" inside the shell script, It is showing the error as,

grep: can't open /usr/dict/words

How can we resolve it?

Thanks & Regards,
Raja

How are you using it in the shell script - and does /usr/dict/words actually exist and is it readable?

What does

ls /usr/dict/words

show?

If it brings no error, please post your line with the mentioned grep too please.