Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


At 1:51pm -0400 Thu, 31 May 2012, Joel Madero wrote:
As for the explanation of why my search didn't come up with it, I did
the following search (twice now) with grep:

grep -rl "Save with password">  password_code.txt

I would think that the grep would find the code regardless of the
underscore. Still a bit confused about that, didn't get a chance last
night to look into the other src file but hopefully tonight or this
weekend.

Looks to me like you forgot to tell grep /where/ to search:

    # wait for input via stdin
$ grep -rl "Save with password" > password_code.txt

    # search starting from "this" directory
$ grep -rl "Save with password" . > password_code.txt

The latter should yield results of interest to you.

Git might return results a bit faster than a blanket search of everything (e.g. non-source files, uncompressed versions of files in Git, etc.):

$ git grep "Save with password"

Kevin

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.