How do I search inside long descriptions

Björn Lundin b.f.lundin at gmail.com
Tue Jun 19 09:06:25 PDT 2007


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
}



/Björn

Björn Lundin
b dot f dot lundin at gmail dot com



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-users/attachments/20070619/fbf566fd/attachment.html


More information about the macports-users mailing list