findコマンドで否定の指定方法

!をつけるだけ。例えば hoge/ の中にある .sh ファイルを列挙したいけど hoge/huge/ の中のあるものは除くって場合

$ find hoge/ -name '*.sh' ! -path 'hoge/huge/*'