cvs commit: ports/ports-mgmt/bpkg Makefile
ports/ports-mgmt/bpkg/files bpkg.8 bpkg.sh.in
Andy Kosela
akosela at andykosela.com
Sat Sep 25 23:29:29 UTC 2010
Doug Barton <dougb at FreeBSD.org> wrote:
> FYI, it's never necessary to do 'cat $file | grep' you can always do
> 'grep $file' instead.
>
> The bit on finding the directory for a port (the ones that start with
> pwd= in the diff) can also be done a bit more efficiently with this at
> the beginning:
>
> grep -m1 "/$e|" INDEX
Yeah I agree, will incorporate your suggestions into the code. However
-m1 option is not useful here as:
$ grep -m1 "/$tin|" INDEX
lists only zh-tin (first match), where first and foremost we are looking
for tin.
--Andy
More information about the cvs-ports
mailing list