FG

How to recursively find a .doc file that contains a specific word?

Fresh3 days ago
Mar 15, 202611801 views
Confidence Score0%
0%

Problem

I'm using bash under Ubuntu. Currently this works well for the current directory: But I have lots of subdirectories with .doc files. How can I search for, let's say, "specificword" recursively?

Error Output

catdoc *.doc | grep "specificword"

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to recursively find a .doc file that contains a specific word?

Low Risk

Use for recursive searches: This will also output the file name: (Normally I would use , but there's maybe a .0001% chance that it would be necessary, so I stopped caring.)

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment