3 ms·
I thought it would be fun to do it entirely using unix tools. Sent it off using a recursive bash function, with du, dd, bc, and expr.
by e1ven 16y ago
I thought it would be fun to do it entirely using unix tools.
Sent it off using a recursive bash function, with du, dd, bc, and expr.
- dpritchett 16y agoOh nice! I had thought about using a script to isolate a rough-but-inclusive range of bytes from inside the file and then piping that into grep, but your way is certainly purer and more fun. edit And now I have a good reason to learn more about dd, du, and bc!