FG

How can I find all UTF-16 encoded text files in a directory tree with a Unix command?

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

Problem

I want to use a Unix shell command to find all UTF-16 encoded files (containing the UTF-16 Byte Order Mark (BOM)) in a directory tree. Is there a command that I can use?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I find all UTF-16 encoded text files in a directory tree with a Unix command?

Low Risk

Though you asked to find the BOM, using might even give you results when such BOM is not present. From : If a file does not match any of the entries in the magic file, it is examined to see if it seems to be a text file. ASCII, ISO-8859-x, non-ISO 8…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment