function findit(f, pattern)
    f = fopen(f, 'r');
    lineNum = 0;
    while ~feof(f)
        line = fgetl(f);
        lineNum = lineNum + 1;
        w = findstr(line, pattern);
        if ~isempty(w)
            disp([num2str(lineNum), ': ', line]);
        end
    end
    fclose(f);
end