I've got a scenario where I have command < filename.txt
so I can pass the contents of filename.txt
and use it in command
. But say I want to take the contents out of the file and just use them in one command line action. How would it look?
Say the contents of filename.txt
are as follows:
To: [email protected]
Message: Some message
I've tried stuff like command "To: [email protected]\n Message: Some message"
with no luck. How do the contents of a text file look when they get parsed into a command in that way?