#!/bin/bash if [ -n "$1" ] ; then dir=$1 else dir=$PWD fi for module in * ; do if [ ! -f $module/$module.info ] ; then echo "Can't find $module/$module.info" 1>&2 continue fi echo -n $module awk -F= '/^version/{version=$2}END{print version}' $module/$module.info | sed -e 's/"//g' done