FG

Why does this bash command take up all space on device?

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

Problem

I'm a little new on searching via bash, so feel free to give me suggestions on the methods to use instead of this, which I'll never use again. I'm searching for occurances of a string, recursively in a directory, with ~50 not-that-large php-files in it; some in current directory, some in directorie…

Error Output

find . | xargs grep "module" > module.txt

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Why does this bash command take up all space on device?

Low Risk

is created before the pipeline starts, therefore it is included in the search. finds an instance of "module" in it, so a line is added to it containing the word "module". Which grep then finds, and adds. Which grep then finds, and adds. Which grep t…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment