Hello.
I have this one liner.df -H | awk '$NF == "/" { print $4 }'
And I am needing to put this into a printf() input in a C program, but I am not sure how to accomplish this. Thanks.
I want to have it working like this.printf("Free disk space is %s\n", input_here);
system(blahblablah);
>>58505763
Is there some reason you aren't just writing a bash script for this?
>>58505833
It is for a C program. There has to be a way to embed this command in a C program.
Unistd.h
>>58505853
>There has to be a way to embed this command in a C program.
You're trash and your programming is trash.