added strtok to grep