シェルスクリプト総合 その19
■ このスレッドは過去ログ倉庫に格納されています
0887名無しさん@お腹いっぱい。
2012/05/26(土) 17:02:55.22-pathオプションを使う。
find "$DIR" "$DIR2" \
\( -path "$DIR/A/*.png" -printf "$(tput bold; tput setaf 6) %f $(tput sgr0)" \) \
-o \( -path "$DIR/B/*.png" -printf "$(tput bold; tput setaf 5) %f $(tput sgr0)" \) \
-o \( -path "$DIR/*.png" -printf "$(tput bold; tput setaf 1) %f $(tput sgr0)" \) \
-o \( -path "$DIR2/*.png" -printf "$(tput bold; tput setaf 5) %f $(tput sgr0)" \)
OR条件の判断上、-path "$DIR/A/*.png" 等を -path "$DIR/*.png" よりも先にすること。
■ このスレッドは過去ログ倉庫に格納されています