@druuna, thanks for the tip on -o. Never used that one before myself.
Try piping smbstatus's output into tr like this:
smbstatus | tr -s "\t" " "
This will effectively replace one or more tabs by just one space. Can make the 'cut' a little easier, since
you can now just cut on a space delimiter. Simply try adding | cut -d' ' -f2 for the second columne (hosts) or -f3 for the third (IPs).
Another tip: don't use 'nice', use 'renice', since they're already running processes.
However, since you're talking about samba connections, you may want to take a look at the Samba configuration, rather than killing/renicing the processes like this.