From 840dfa20b35c6254ef2c1fa98e87fc354fd378a9 Mon Sep 17 00:00:00 2001 From: Razvan Deaconescu Date: Mon, 16 Aug 2010 19:02:49 +0300 Subject: [PATCH] ControlScripts: update output matrix file in parse_up_down_log.sh --- ControlScripts/parse_up_down_log.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ControlScripts/parse_up_down_log.sh b/ControlScripts/parse_up_down_log.sh index 2ad8cea..4ce9ce5 100755 --- a/ControlScripts/parse_up_down_log.sh +++ b/ControlScripts/parse_up_down_log.sh @@ -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" -- 2.20.1