From 1bffd71942f6fd9339f1c82d0ffc11a1e012d8bb Mon Sep 17 00:00:00 2001 From: Danila Gamkov Date: Thu, 23 Jan 2025 11:43:41 +0300 Subject: [PATCH] add shell command files asotr_unzip.sh and asotr_parse.sh as auxillary commands for asotr MVN data parsing --- asotr_parse.sh | 2 ++ asotr_unzip.sh | 11 +++++++++++ 2 files changed, 13 insertions(+) mode change 100644 => 100755 asotr_parse.sh create mode 100755 asotr_unzip.sh diff --git a/asotr_parse.sh b/asotr_parse.sh old mode 100644 new mode 100755 index ee440e2..4e73f93 --- a/asotr_parse.sh +++ b/asotr_parse.sh @@ -1,3 +1,5 @@ +#! /bin/bash + ls | grep -P '.*data01.asotr01' | xargs -I {} ./asotr_csv -f {} >> ../asotr1_T.csv ls | grep -P '.*data02.asotr01' | xargs -I {} ./asotr_csv -f {} >> ../asotr1_P.csv ls | grep -P '.*data06.asotr01' | xargs -I {} ./asotr_csv -f {} >> ../asotr1_TSET.csv diff --git a/asotr_unzip.sh b/asotr_unzip.sh new file mode 100755 index 0000000..8a7f253 --- /dev/null +++ b/asotr_unzip.sh @@ -0,0 +1,11 @@ +#! /bin/bash + +if [ $# != 1 ] +then + echo "error use $0. Right use this script: " + echo "$0 path" + echo "example 1: $0 ./20250120-000" +else + path_=$1 + tar -xvzf ${path_}/data/asotr.tar.gz -C ${path_}/data +fi