Ralf Hackmann <ralf.hackmann@gmx.de> (Di 06 Okt 2009 14:18:45 CEST): > Hallo, > > testawk.txt: > 00341493-0200 180 > 00342322-0200 90 > 10000119-0200 30 > > awk '{print " update fyar2sta set lpermax=" $2, "where sa=0 and artikel=" > $1";" }' testawk.txt awk '{print " update fyar2sta set lpermax=", $2, "where sa=0 and artikel='\''" $1 "'\'';" }' oder awk '{print " update fyar2sta set lpermax=", $2, "where sa=0 and artikel='"'"'" $1 "'"'"';" }' Oder das mit \x27, wie in der anderen Antwort vorgeschlagen. Oder - tut AWK wirklich not? Best regards from Dresden/Germany Viele Grüße aus Dresden Heiko Schlittermann -- SCHLITTERMANN.de ---------------------------- internet & unix support - Heiko Schlittermann HS12-RIPE ----------------------------------------- gnupg encrypted messages are welcome - key ID: 48D0359B --------------- gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2 7E92 EE4E AC98 48D0 359B -
Attachment:
signature.asc
Description: Digital signature