Eric Blake wrote:
> for $var in *; do
>   case $var in
>     *-IGN-*) ;;
>     *) # whatever you wanted on the remaining files
>       ;;
>   esac
> done

A couple of minor syntax errors in the above.  But we know it is
simply that perl influence that dragged you that way.  :-)

This is a typical pattern for me.  But I optimize it a little bit when
possible by doing it this way.

  for var in *; do
    case $var in
      *-IGN-*) continue ;;
    esac
    whatever you wanted on the remaining files
  done

Bob

Reply via email to