On 09/13/2011 09:11 AM, Oliver Fromme wrote:
Stephen Montgomery-Smith wrote:
> particularly nasty thing to do. I get the impression that each
> committer has his own special way of doing this. For example, I have
> personally found that a simple grep won't work, because "grep xxx
> /usr/ports/*/Makefile*" just creates a line too long for the shell to
> handle. I use a shell construction involving "find" but I wonder how
> others do the same thing.
cd /usr/ports
echo */*/Makefile* | xargs grep xxx
That's amazing.
It would never have occurred to me that "echo */*/Makefile*" works when
"grep xxx */*/Makefile*". Is that because "echo" is a builtin command
in csh (which is what I use)? I notice "/bin/echo */*/Makefile*"
doesn't work.
Is this documented somewhere?
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"