Timeline for Does grep -rIL display the binary files from a directory and it's subdirectories?
Current License: CC BY-SA 4.0
        5 events
    
    | when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 30, 2021 at 9:59 | vote | accept | pleasehelp | ||
| Mar 24, 2021 at 22:54 | comment | added | pleasehelp | @ikkachu thank you. It's for an exercise and it specifies that I should display with the help of grep all binary files and I got a little bit confused. | |
| Mar 24, 2021 at 22:50 | comment | added | ilkkachu | @pleasehelp, err, depends on what you want to actually do in the end. Grep considers files "binary" if there's any NUL bytes, or if there's other data that doesn't match characters in the current locale (e.g. broken UTF-8 encoding, in a UTF-8 locale). -ILwould treat all binary files as non-matching and would list all non-matching files, so it should print the binary files. Though if doing it with grep makes sense, you'll have to decide. Also note: unix.stackexchange.com/questions/510044/… | |
| Mar 24, 2021 at 22:11 | comment | added | pleasehelp | @ikkachu,so grep -rL would be the right way?I don't really understand what is considert a binary file | |
| Mar 24, 2021 at 21:59 | history | answered | ilkkachu | CC BY-SA 4.0 |