this post was submitted on 27 Aug 2024
241 points (98.0% liked)
Programmer Humor
32380 readers
1442 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
And there's your problem. You're
echo
ing using double quotes which will interpret characters. Don't do that. That's a bug.cat
orcp
the file to the destination;printf
if the contents are all in that variable.No, you're still misunderstanding what's being done.
${server_service}
is an injected string, the string is the whole contents of the file. That file is not stored locally on the server, except through being injected here(by a terraform file template). And no,printf
won't be any better thanecho
because its not format string, and I don't want any formatting from printf applied to it.