#!/bin/sh
shopt -s extglob
if (( $# == 1 ))
then
case "$1" in
*.mp3 )
.. ;;
*.(png|jpg|jpeg) )
.. ;;
*.!(mp3|jpg|png|pdf|htm[l]) )
.. ;;
esac
else
..В итоге:
[console]line 8: syntax error near unexpected token `('
` *.(png|jpg|jpeg) )'[/console]
Что не так-то? *CRAZY*