the other day i tried running a certain construct of the find command, via command line, but it didn't work:
it just sat there, never returned (even on my very small test case). i've used this construct for years, so i know that it works (on some or most unix implementations, anyway).
i was able to find a workaround (for those interested):
(sadly, the workaround doesn't work all the time, as xargs was choking on something coming through the pipe and had to restrict its running to a subdir)
any unix heads know what's up w/ the first find? has 'find' changed since i was doing all my unix coding?
i'm running 10.2.2, if that matters.
Code:
% find . -type f -exec grep foo {}\; -print
it just sat there, never returned (even on my very small test case). i've used this construct for years, so i know that it works (on some or most unix implementations, anyway).
i was able to find a workaround (for those interested):
Code:
% find . -type f -print | xargs grep foo
(sadly, the workaround doesn't work all the time, as xargs was choking on something coming through the pipe and had to restrict its running to a subdir)
any unix heads know what's up w/ the first find? has 'find' changed since i was doing all my unix coding?
i'm running 10.2.2, if that matters.