echo using single quotes

Hi,

Please help me to echo the following statement using single quotes

     Why can't I write 's between single quotes

Thanks in advance,
Chella

echo "Why can't I write 's between single quotes"


If I understand your problem, you are trying to do:

echo 'why doesn't this work?'

You'll need to escape the inner ' so it is seen literally.

echo 'shouldn\'t this work fine?'

Thank You for the reply.

But still I am not able to get the required output.

echo 'shouldn\'t this work fine?'

when I tried the above statement it asks to use another single quote at the end.

Please help me.

Regards,
Chella