match prompt to determin when command output is finished