***a student becomes enlightened*** I previously thought "port echo" was just a loopback/diagnostic because if I do "port echo asdfjk" I get "asdfjk".
Thanks! Andre On Thu, Mar 12, 2009 at 10:24 AM, Rainer Müller <[email protected]> wrote: > Andre Stechert wrote: >> port list | wc -l >> answers the question "how many ports does macports have nowadays? >> we catching up to freebsd yet?" > > port echo all | wc -l > port search '*' | tail -1 > >> port list | grep ... >> answers the question "is /re/ a port?" without requiring me to >> understand port search's syntax and/or limitations compared to regular >> old grep. >> >> port list | awk ... >> allows me to perform arbitrary shell operations against the entire >> set of possible ports for cleanup, statistics, or whatever. > > port echo all | grep ... > port echo all | awk ... > > Maybe it would be useful to make list an alias to echo? > > A command like > port info --line --name --version ... all > allows even more by selecting the field you want to view. > > Rainer > _______________________________________________ macports-dev mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev
