I'm using find
to analyze a list of files. I want it to identify the files that are not ASCII files.
So this is what I've tried on the command line:
for me in `find 2022*`; do file -i $me | grep -L 'ascii' ; done;
Output:
(standard input)
(standard input)
(standard input)
(standard input)
(standard input)
(standard input)
(standard input)
The number of standard input
, which is 7, correctly indicates that it actually finds the right files out of the 200 submitted, but I need the name of the file itself.
How do I do this?