Re: grep shell script mit variablem Suchmuster

David Haller <[email protected]>
Newsgroups gmane.linux.suse.programming
Message-ID <[email protected]>
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]
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.