Do you want a C program that acts like this Bourne shell script? Or a csh script that acts like this sh script?
Either way, you need to start the work and post your code, possibly not yet running / compiling. Be sure to show the full errors if you have them.
What is the point of this code?
griswolf
Veteran Poster
1,176 posts since Apr 2010
Reputation Points: 344
Solved Threads: 262
Skill Endorsements: 1