Michelle Konzack schrieb am Montag, 30. Mai 2005 um 15:56:05 +0200: > Am 2005-05-30 14:39:33, schrieb Gerhard Wolfstieg: > > > Stimmt! Dann f�llt aber auch uniq aus und HISTCONTROL=erasedups geht > > noch nicht als Standard unter Sarge. Was dann? Dann wird's aufwendig, > > oder? Eine L�sung f�r das Problem l��t sich �fter gebrauchen. > > Mu� mal sehn... > Denke, das ich da mal wieder ein Script basteln werde > > > Gru�, Gerhard > > Greetings > Michelle
primitiv, aber es tut: #!/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" -- J�rg Friedrich There are only 10 types of people: Those who understand binary and those who don't.
signature.asc
Description: Digital signature

