I want to create multiple files with a common template, problem is there have "$(variable)" in the template, which should be written with $ sign. for example, I want output is $job_ID from

echo "output is $job_ID" 

Any suggestion?


You can escape special characters with a backslash, such as:

echo " output is \$job_ID"

or use single quotes instead

echo ' output is $job_ID'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.