#!/bin/bash

for pkg in $@
do
    owner=`curl -s http://www.opencsw.org/packages/$pkg | \
        grep Maintainer: | cut -f5 -d'>' | cut -f1 -d'<'`
    version=`curl -s http://www.opencsw.org/packages/$pkg | \
        grep Version: | cut -f4 -d'>' | cut -f1 -d' '`

    printf "%-20s %-30s %s\n" $pkg ${version:-Unknown} "${owner:-Nobody}"
done
