Lately I have coded a little bit more with the terminal in Linux to get a deeper understanding of programming. Right now I am trying to automatize the compiling process with the following command:
find . -type f -mmin -1 -name "*.c" | gcc -o output.o -xc -
It basicly should find the latest modified file with ending
"*.c" and compile it. However I always get the following error:
<stdin>:1:1: error: expected identifier or ‘(’ before ‘.’ token
Could anybody help me and explain what I am doing wrong or show me an alternative?
Thank you very much and have a nice day!