I am new to Shell scripting.How am I supposed to take the output of a c program that i execute and give it as an input to another c program all using shell.
2 Answers
Assuming program1
sends data to stdout and program2
receives data from stdin:
program1 | program2
You need to learn about bash pipes and redirection. In particular to pass the output of one program to the input of another use the |
operator
program | another_program