Re: Bilddatei als Ressource im Script ablegen

David Haller <[email protected]> Tue, 5 Oct 2010 04:44:50 +0200
Newsgroups gmane.linux.suse.programming
Message-ID <[email protected]>
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.)