- Timestamp:
- 09/05/21 07:13:17 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/hawc/processing/DiskToDB/extract-aux-data2.sh
r20103 r20104 30 30 # File to which the queries are written 31 31 OUTPUT="insert-aux.sql" 32 TMPOUT="./tmpAuxOut.sql"33 32 # The Mars build directory 34 readonly MARS="/home/ frankm/Dateien/Mars-6.24.00/build4/"33 readonly MARS="/home/hawc/Desktop/Mars/" 35 34 # The path to your Mars/build directory where the processing macros are stored 36 # MACROS="/home/frankm/Dateien/Mars/hawc/processing" 37 readonly MACROS="/home/frankm/Dateien/Mars-6.24.00/build/Masterarbeit/Datenbank/HE01/Mexico/Cfiles/" 35 readonly MACROS="/home/hawc/Desktop/Mars-src/hawc/processing/" 38 36 readonly PROGRAM=$0 39 37 INSERT="INSERT INTO" … … 96 94 NIGHT="${4}" 97 95 96 TMPOUT="./tmpAuxOut-${TEL}.sql" 98 97 ERRCODE= 99 98 … … 318 317 319 318 # Delete last comma and replace it with closing parintheses 320 sed -i '$s/,/)/' "${OUTPUT}" 321 322 # Finish the query file with defining the column names 323 echo "\ 319 if [ -f "${TMPOUT}" ] 320 then 321 sed -i '$s/,/)/' "${OUTPUT}" 322 323 # Finish the query file with defining the column names 324 echo "\ 324 325 AS 325 326 v( … … 337 338 "\ >> ${OUTPUT} 338 339 339 cat ${TMPOUT} >> ${OUTPUT} 340 else 341 head -n -4 "${OUTPUT}" > out.sql.new && mv out.sql.new "${OUTPUT}" 342 fi 343 344 if [ -f "${TMPOUT}" ] 345 then 346 cat ${TMPOUT} >> ${OUTPUT} 347 fi 340 348 341 349 rm -f ${TMPOUT}
Note:
See TracChangeset
for help on using the changeset viewer.