Check if a file is really a file, whether a string contains anything, and whether you can run a program with these vital patterns.
At first glance, it might not seem to make sense to write shell scripts in C/C++. After all, the whole point to a shell script is to knock out something quick and dirty. However, there are cases where ...