#!/bin/bash DESCRIPTION="output username:md5password per line for all cellusers, if you give a comamnd line argument like ssh or mail or svn, then only users with this feature will be printed" celluser -list|while read user; do if ! [ -z "$1" ] ; then celluser $user options|grep $1 &>/dev/null || continue fi echo -n $user echo -n : echo -n `celluser $user md5password` echo done