- Nov
- 2
- 0
Hi, I am trying to add some configuration options to a bunch of files with the help of tpipe. The files look like this
[..]
// Verzeichnis für Content: 'Finanzamts Bericht'
CONTENT_DIRECTORY_FINANZAMT_BERICHT = "/home/vamosusr/exporte/export_finanzamtsbericht_oesterreich";
[..]
and I want to add some lines like this ..
[..]
// Verzeichnis für Content: 'Finanzamts Bericht'
CONTENT_DIRECTORY_FINANZAMT_BERICHT = "/home/vamosusr/exporte/export_finanzamtsbericht_oesterreich";
CONTENT_DIRECTORY_FINANZAMT_DEUTSCHLAND_EXKLUSIVVERMITTLER = "/home/vamosusr/exporte/export_finanzamtsbericht";
[..]
so I tried something like this:
for /r %file in (*gsprovision.cfg) tpipe /input=%file /output=%file /replace=4,1,0,0,0,0,0,0,0,"CONTENT_DIRECTORY_FINANZAMT_BERICHT = ./home/vamosusr/exporte/export_finanzamtsbericht_oesterreich.;","CONTENT_DIRECTORY_FINANZAMT_BERICHT = \"/home/vamosusr/exporte/export_finanzamtsbericht_oesterreich\";\n\t\tCONTENT_DIRECTORY_FINANZAMT_DEUTSCHLAND_EXKLUSIVVERMITTLER = \"/home/vamosusr/exporte/export_finanzamtsbericht\";"
and for each file in the wildcard search I get:
TPIPE: Trailing \ needs to be followed by something
It seems, that tpipe is not recognizing the escaped double quote in the replace part.
Any suggestions?
Greetings from Germany and thanks in advance,
Thorsten.
P.S.: Double Escaping like (\\\") doesn't work either.
[..]
// Verzeichnis für Content: 'Finanzamts Bericht'
CONTENT_DIRECTORY_FINANZAMT_BERICHT = "/home/vamosusr/exporte/export_finanzamtsbericht_oesterreich";
[..]
and I want to add some lines like this ..
[..]
// Verzeichnis für Content: 'Finanzamts Bericht'
CONTENT_DIRECTORY_FINANZAMT_BERICHT = "/home/vamosusr/exporte/export_finanzamtsbericht_oesterreich";
CONTENT_DIRECTORY_FINANZAMT_DEUTSCHLAND_EXKLUSIVVERMITTLER = "/home/vamosusr/exporte/export_finanzamtsbericht";
[..]
so I tried something like this:
for /r %file in (*gsprovision.cfg) tpipe /input=%file /output=%file /replace=4,1,0,0,0,0,0,0,0,"CONTENT_DIRECTORY_FINANZAMT_BERICHT = ./home/vamosusr/exporte/export_finanzamtsbericht_oesterreich.;","CONTENT_DIRECTORY_FINANZAMT_BERICHT = \"/home/vamosusr/exporte/export_finanzamtsbericht_oesterreich\";\n\t\tCONTENT_DIRECTORY_FINANZAMT_DEUTSCHLAND_EXKLUSIVVERMITTLER = \"/home/vamosusr/exporte/export_finanzamtsbericht\";"
and for each file in the wildcard search I get:
TPIPE: Trailing \ needs to be followed by something
It seems, that tpipe is not recognizing the escaped double quote in the replace part.
Any suggestions?
Greetings from Germany and thanks in advance,
Thorsten.
P.S.: Double Escaping like (\\\") doesn't work either.
Last edited: