1 2 3 4 5 6 7 8 9 10
#!/bin/bash # A script to run Presentations. ext="${@##*.}" shopt -s nocasematch case "$ext" in "prs" ) /opt/smoffice2016/presentations -S\""$@"\";; "pps" ) /opt/smoffice2016/presentations -S\""$@"\";; "ppsx" ) /opt/smoffice2016/presentations -S\""$@"\";; * ) /opt/smoffice2016/presentations "$@";; esac