ich habe ein Problem beim benutzen von cut in einem von mir geschriebenen Script:
username=`grep -i username: config.conf | cut -d " -f 2` database=`grep -i database: config.conf | cut -d " -f 2` password=`grep -i password: config.conf | cut -d " -f 2`
mit den 3 zeilen lese ich aus einer config file die 3 werte aus, bzw ich probiere es
vorher hatte ich als delimiter den doppelpunkt und damit gings, ich musste das jetzt allerdings auf " umstellen
allerdings kommt das script damit nicht klar ich bekomme immer einen EOF fehler
./test.sh: line 358: unexpected EOF while looking for matching ``' ./test.sh: line 372: syntax error: unexpected end of file
muss ich das zeichen besonders maskieren oder so das die ganze suche funzt?