#!/bin/sh i=0; while [ $i -lt 255 ]; do smbclient -U Administrator -N -W workgroup -L $1.$i i=$[$i+1] done