in reply to Executing data based on command line arguments
Assume there is nothing there to complicate the matter, the following will do:
if (c is given && your grep) { ... } [download]