Re: grep shell script mit variablem Suchmuster

Christof Janssen <[email protected]>
Newsgroups gmane.linux.suse.programming
Message-ID <[email protected]>
stimmt !

Am 28. Jun 2005 um 21:31 schrieb David Haller:

> Hallo,
>
> Am Mon, 27 Jun 2005, Christof Janssen schrieb:
>
>> #! /bin/sh
>>
> [..]
>
>> # usage: . ./cntrefs.sh start stop datei.ris
>> #
>> i=$1
>> while [ $i -le $2 ]
>>    do grep -c "DP  - `echo $i`" $3
>>
>                        ^^^^^^^^^ ueberfluessig!
>
>         grep -c "DP  - $i" $3
>
>
>>    i=$[$i+1]
>> done
>>
>
> -dnh
>
> --  
> Vieleicht sollte man so was wie ne Signatursparkasse einführen.
> Man weis ja nie. Vieleicht gibts dann Irgendwann Siggzinsen. Wie
> die dann wohl aussehen würden?                           [WoKo in  
> dag°]
>
> -- 
> Um die Liste abzubestellen, schicken Sie eine Mail an:
>     [email protected]
> Um eine Liste aller verfügbaren Kommandos zu bekommen, schicken
> Sie eine Mail an: [email protected]
>
>


-- 
Um die Liste abzubestellen, schicken Sie eine Mail an:
    [email protected]
Um eine Liste aller verfügbaren Kommandos zu bekommen, schicken
Sie eine Mail an: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.