1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/bin/sh kls_ljpeg_i="" kls_ljpeg_o="" kls_ljpeg_bin="" while [ "$1" ] ; do case "$1" in "--input") kls_ljpeg_i="$2" shift ;; "--output") kls_ljpeg_o="$2" shift ;; "--binary") kls_ljpeg_bin="$2" shift ;; esac shift done $kls_ljpeg_bin "$kls_ljpeg_i" > "$kls_ljpeg_o"