Hallo Jan!!! Am Mon, 04 Okt 2010, Jan Trippler schrieb:
Am Mittwoch, 29. September 2010, 20:10:07 schrieb David Haller: [...]
find -type f -iname '*.jpg' | while read -r FILE; do
#Files mit Rahmen __R.JPG nicht nochmal bearbeiten if ! test `echo "$FILE" | grep "__R.JPG"`; then
Useless use of echo. Den Exitcode bekommst du auch direkt von grep. Und das grep sollte man "verankern": grep '__R.JPG$'.
if ! echo "$FILE" | grep -q "__R.JPG$"; then
[...]
Useless use of if-then-fi + grep ;-)
find -type f -iname '*.jpg' ! -name '*_R.JPG' | while read -r FILE; do
Da siehste mal, wie sehr du mir fehlst! Willkommen zur-Aück!-b -dnh -- Make sure that they know you know that they know you know. -- Mike Andrews on getting license keys by mail (from a certain Corp.) -- To unsubscribe, e-mail: opensuse-programming-de+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-programming-de+help@opensuse.org