On Thu, 2016-06-30 at 11:56 +0100, Mark Rogers wrote:
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).
W-e-e-e-e-e-e-lll. I meant '-R', but that doesn't do what I thought it did anyway!
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!
You're welcome.
Improvements welcome though (as a learning exercise).
-ditto-