Bash script bomen en bos
Geplaatst: 05 jan 2014, 20:32
Heb mij deze nacht eens laten gaan en zit nu met een laatste probleem.
Dit stuk code :
Graag wat hulp hierbij.
blijkbaar helpt \ niet echt om de & van & te neutraliseren. En zo nog van kleine probleempjes.
Heb mooi wat uren in het script gestopt en mevrouw vind dat het genoeg geweest is, ik weet niet echt hoe ik mijn probleem moet verwoorden om via google een oplossing te vinden.
Dit stuk code :
Code: Selecteer alles
echo " <Scrapers>" >> config.xml
echo " <Site descFilePerGame="True" name="local nfo" searchGameByCRC="False">" >> config.xml
echo " <Scraper parseInstruction="00 - local nfo.xml" source="nfo" />" >> config.xml
echo " </Site>" >> config.xml
echo " <Site descFilePerGame="True" name="thegamesdb.net" searchGameByCRC="False">" >> config.xml
echo " <Scraper parseInstruction="02 - thegamesdb.xml" source="http://thegamesdb.net/api/GetGame.php?name=%GAME%&platform=%PLATFORM%" />" >> config.xml
echo " </Site>" >> config.xml
echo " <Site descFilePerGame="True" name="giantbomb.com" searchGameByCRC="False">" >> config.xml
echo " <Scraper parseInstruction="03.01 - giantbomb - search.xml" returnUrl="true" source="http://api.giantbomb.com/search/?api_key=%GIANTB$" >> config.xml
echo " <Scraper parseInstruction="03.02 - giantbomb - detail.xml" source="1" />" >> config.xml
echo " </Site>" >> config.xml
echo " <Site descFilePerGame="True" name="mobygames.com" searchGameByCRC="False">" >> config.xml
echo " <Scraper parseInstruction="04.01 - mobygames - gamesearch.xml" returnUrl="true" source="http://www.mobygames.com/search/quick?game=%$" >> config.xml
echo " <Scraper parseInstruction="04.02 - mobygames - details.xml" source="1" />" >> config.xml
echo " <Scraper parseInstruction="04.03 - mobygames - coverlink front.xml" returnUrl="true" source="1" sourceAppend="cover-art" />" >> config.xml
echo " <Scraper parseInstruction="04.04 - mobygames - coverdetail front.xml" source="2" />" >> config.xml
echo " <Scraper parseInstruction="04.05 - mobygames - coverlink back.xml" returnUrl="true" source="1" sourceAppend="cover-art" />" >> config.xml
echo " <Scraper parseInstruction="04.06 - mobygames - coverdetail back.xml" source="3" />" >> config.xml
echo " <Scraper parseInstruction="04.07 - mobygames - coverlink media.xml" returnUrl="true" source="1" sourceAppend="cover-art" />" >> config.xml
echo " <Scraper parseInstruction="04.08 - mobygames - coverdetail media.xml" source="4" />" >> config.xml
echo " <Scraper parseInstruction="04.09 - mobygames - screenshotlink.xml" returnUrl="true" source="1" sourceAppend="screenshots" />" >> config.xml
echo " <Scraper parseInstruction="04.10 - mobygames - screenshot detail.xml" source="5" />" >> config.xml
echo " </Site>" >> config.xml
echo " <Site descFilePerGame="True" name="archive.vg" searchGameByCRC="False">" >> config.xml
echo " <Scraper encoding="iso-8859-1" parseInstruction="05.01 - archive - search.xml" returnUrl="true" source="http://api.archive.vg/2.0/Ar$" >> config.xml
echo " <Scraper encoding="iso-8859-1" parseInstruction="05.02 - archive - detail.xml" source="1" />" >> config.xml
echo " </Site>" >> config.xml
echo " <Site descFilePerGame="True" name="maws.mameworld.info" searchGameByCRC="False">" >> config.xml
echo " <Scraper encoding="iso-8859-1" parseInstruction="06 - maws.xml" source="http://maws.mameworld.info/maws/romset/%GAME%" />" >> config.xml
echo " </Site>" >> config.xml
echo " </Scrapers>" >> config.xml
echo " </config>" >> config.xml
blijkbaar helpt \ niet echt om de & van & te neutraliseren. En zo nog van kleine probleempjes.
Heb mooi wat uren in het script gestopt en mevrouw vind dat het genoeg geweest is, ik weet niet echt hoe ik mijn probleem moet verwoorden om via google een oplossing te vinden.