open excel sheet store first column i- command in a array store the results in the 2nd array For the first command in the first column - check for the output in the second column + the pattern to be observed if the pattern matched then open another excel sheet and fill in the first col by command name and second column by pattern we found check for the second command and so on… once end of first sheet open second sheet and so on…