add shell command files asotr_unzip.sh and asotr_parse.sh as auxillary commands for asotr MVN data parsing

This commit is contained in:
Danila Gamkov 2025-01-23 11:43:41 +03:00
parent 5f6fd039f7
commit 1bffd71942
2 changed files with 13 additions and 0 deletions

2
asotr_parse.sh Normal file → Executable file
View File

@ -1,3 +1,5 @@
#! /bin/bash
ls | grep -P '.*data01.asotr01' | xargs -I {} ./asotr_csv -f {} >> ../asotr1_T.csv 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 '.*data02.asotr01' | xargs -I {} ./asotr_csv -f {} >> ../asotr1_P.csv
ls | grep -P '.*data06.asotr01' | xargs -I {} ./asotr_csv -f {} >> ../asotr1_TSET.csv ls | grep -P '.*data06.asotr01' | xargs -I {} ./asotr_csv -f {} >> ../asotr1_TSET.csv

11
asotr_unzip.sh Executable file
View File

@ -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