ControlScripts: update output matrix file in parse_up_down_log.sh
authorRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Mon, 16 Aug 2010 16:02:49 +0000 (19:02 +0300)
committerRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Mon, 16 Aug 2010 16:02:49 +0000 (19:02 +0300)
ControlScripts/parse_up_down_log.sh

index 2ad8cea..4ce9ce5 100755 (executable)
@@ -73,7 +73,8 @@ mkdir $log_folder/up/
 # populate download matrix files
 for index in $(seq 1 ${#date_array[@]}); do
        date=${date_array[$(($index-1))]}
-       out_file=$(echo "${date}.mat" | sed 's/ /-/g')
+       tmp_out_file=$(echo "${date}.mat" | sed 's/-/./g' | sed 's/ /-/g' | sed 's/:/./g')
+       out_file=$(date +%Y).${tmp_out_file}
        echo "$out_file" >> $log_folder/down_mat_files.lst
        echo "$out_file" >> $log_folder/up_mat_files.lst
        DEBUG echo "out_file: $out_file"