[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Solved][Zusammenfassung]



Am 2005-05-30 18:20:42, schrieb Joerg Friedrich:

> primitiv, aber es tut:

<breitgrins>

> #!/usr/bin/bash
> 
> ZWISCHEN=$(tempfile)
> cat $1 |
> while read ZEILE; do
>   SUCH=$(echo $ZEILE | sed -e 's/"/\\"/g')
>   grep "$SUCH" $ZWISCHEN > /dev/null|| echo $ZEILE >> $ZWISCHEN
> done
> 
> echo "Daten befinden sich in $ZWISCHEN"

Hätte ich fast genauso gemacht.

Greetings
Michelle

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/3/88452356    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature


Reply to: