I am just wondering how I can echo a variable inside single quotes (I am using single quotes as the string has quotation marks in it).
echo \'test text
Use a heredoc:
cat << EOF >> ${FILE} test text "here_is_some_test_text_$counter" "output" EOF