Having trouble finding a word in multiple files
Pat Brown
pat.mysterywriter at gmail.com
Sun Jun 14 09:17:57 UTC 2020
On Sun, Jun 14, 2020 at 4:30 AM Colin Law <clanlaw at gmail.com> wrote:
>
> On Sun, 14 Jun 2020 at 09:25, Ralf Mardorf via ubuntu-users
> <ubuntu-users at lists.ubuntu.com> wrote:
> >
> > On Sun, 14 Jun 2020 03:53:41 -0400, Pat Brown wrote:
> > >I've tried a variety of grep commands but I can't find the specific
> > >word I'm searching for that is in a file or files somewhere in my
> > >Dropbox folder. The word I'm trying to find is Blowback. Can someone
> > >please help me with the correct command?
> >
> > $ mkdir Desktop/.tmp{1,2}
> > $ echo ":)" > Desktop/.tmp1/file.txt
> > $ echo "Blowback" > Desktop/.tmp2/file2.txt
> > $ grep -r -i blowback Desktop/
> > Desktop/.tmp2/file2.txt:Blowback
>
> Or if you just want to know which files it is in then you can add -l
> (lower case L) so it just lists the filenames
> grep -ril blowback Desktop/
>
> Colin
>
> >
> > --
> > ubuntu-users mailing list
> > ubuntu-users at lists.ubuntu.com
> > Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Unfortunately, none of those suggestions worked. Perhaps it's because
the files I'm searching are either .doc, .docx or .odt files. The
Dropbox folder is at the root of my home directory and it is an actual
folder that contains multiple folders under it.
Pat Brown
https://fineartamerica.com/profiles/9-pat-brown.html
More information about the ubuntu-users
mailing list