KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have the following code in my makefile: S_RES=$(shell cat output) echo -e "Serial result = \t" $(S_RES) Basically, I want to store the output of the shell command cat output in the S_RES variable, and then echo that variable to the screen (with some explanatory text in front of it). I also want to be able to use the variable later on in my program. I thought I had followed the instructions given in various StackOverflow questions, but it doesn't seem to work.
Tags (comma-separated)
Save Edits
Cancel