[BraLUG] Script zum Finden von Unterschieden in 2 Dateien
Uwe Berger
bergeruw at gmx.net
Do Sep 21 11:12:20 CEST 2006
MoinMoin,
> gawk '{ if (system("grep \"" $0 "\" testfile2 > /dev/null ")) print }'
> testfile1
>
hmm, gawk meint, dass ein Fehler im Script ist....
D:\DNC\Scripts\check>gawk '{ if (system("grep \"" $0 "\" dnc.txt > null.txt "))
print }' sap.txt
gawk: cmd. line:1: '{
gawk: cmd. line:1: ^ invalid char ''' in expression
nehme ich die ' raus, passiert das:
D:\DNC\Scripts\check>gawk { if (system("grep \"" $0 "\" dnc.txt > null.txt "))
print }' sap.txt
gawk: cmd. line:2: (END OF FILE)
gawk: cmd. line:2: parse error
Gruß Uwe
--
-----------------------------------
Brandenburger Linux User Group e.V.
Internet....: http://www.bralug.org
E-Mail......: mailto:info at bralug.de
-----------------------------------NEU: GMX DSL Sofort-Start-Set - blitzschnell ins Internet!
Echte DSL-Flatrate ab 0,- Euro* http://www.gmx.net/de/go/dsl
Mehr Informationen über die Mailingliste Bralug