I am trying to find an efficient way to do the level 5 of the OverTheWire bandit challenge.
Anyway, I have a bunch of files, and there is only one that respects the following criteria:
- 1033 bytes in size
Right now, I am using the
find command, and I am able to find the files matching the 2 last criteria:
find . -size 1033c ! -executable
However, I don't know how to excluse non-human-readable files. Solutions I found for that challenge use the
-readable test parameter, but I don't think this works.
-readable only looks at the files' permissions, and not at its content, while the challenge description ask for an ASCII file or something like that.