How to resolve "ambiguous redirect" error in shell script

Some times we will get the error "ambiguous redirect" while executing bash scripts.

We can resolve this by adding quotes around the variable in the script.

For example,

We need to change the line

echo data > ${VARIABLE}


echo data > "${VARIABLE}"

That's all...

Leave a Reply

Your email address will not be published. Required fields are marked *