On 30 June 2016 at 11:23, Huge huge@huge.org.uk wrote:
Given that the "file" command can recurse through directories,
file -r didn't seem to work for me. (-r = raw, not recurse).
But it did lead me to the horrible messy but functional:
grep 192.168.1.1 `file $(find etc -type f) | grep ASCII | sed 's#:.*##'`
So thanks!
Improvements welcome though (as a learning exercise).