Shell script, in C