← All Kali Issues
Grep

Binary file matches

S System Low

🔴 Error Message

grep treating file as binary

📖 What This Means

File contains null bytes or binary data.

🔧 Step-by-Step Fix

  1. Force text: grep -a "pattern" file
  2. Use strings first: strings file | grep pattern
  3. Use: grep --text "pattern" file