Non funziona quanto segue:
Codice: Seleziona tutto
find ./ -name "*.JPG" -o -name "*.jpg" -exec mogrify -resize $grandezza {} \;
Andrea
Codice: Seleziona tutto
find ./ -name "*.JPG" -o -name "*.jpg" -exec mogrify -resize $grandezza {} \;

Codice: Seleziona tutto
find ./ \( -name "*.JPG" -o -name "*.jpg" \) -exec mogrify -resize $grandezza {} \;Codice: Seleziona tutto
-iname pattern
Like -name, but the match is case insensitive. For example, the
patterns `fo*' and `F??' match the file names `Foo', `FOO',
`foo', `fOo', etc. In these patterns, unlike filename expan‐
sion by the shell, an initial '.' can be matched by `*'. That
is, find -name *bar will match the file `.foobar'. Please note
that you should quote patterns as a matter of course, otherwise
the shell will expand any wildcard characters in them.
Codice: Seleziona tutto
find -iname "*.jpg" ...
Visualizzano questa sezione: 0 utenti iscritti e 4 ospiti