1 2 3 4 5 6 7
#!/bin/sh case "$1" in "parted") test $(/sbin/parted --version | grep '^Copyright' | wc -l) -gt 0 ;; esac