How do I search inside long descriptions
Emmanuel Hainry
ehainry at free.fr
Tue Jun 19 09:17:07 PDT 2007
Citando Björn Lundin :
>
> 19 jun 2007 kl. 15.14 skrev James Berry:
>
>
> >
> > port list long_description:spreadsheet
> >
>
> which togeteher with Ryan's function can look like
>
>
> port() {
> case "$1" in
> searchlong)
> if [ -z "$2" ]; then
> echo "usage: port searchlong <searchterm>" 1>&2
> else
> SEARCH="$2"
> PORT_LIST=$(port list long_description:$SEARCH | awk {'print $1'})
> for PORT in $PORT_LIST; do
> echo -n .
> port info $PORT
> done
> fi
> ;;
> *)
> /opt/local/bin/port "$@"
> ;;
> esac
> }
>
You should use 'port echo' instead of "port list | awk '{print $1}'". It
should speed things up.
Emmanuel
More information about the macports-users
mailing list