1 2 3 4 5 6 7 8 9 10
#!/bin/sh case "$1" in cifsmount) mount.cifs --version 2>&1 | grep -F "$2" ;; smbinfo) smbinfo --version 2>&1 | grep -F "$2" ;; esac