-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcountMerged
More file actions
executable file
·38 lines (29 loc) · 928 Bytes
/
countMerged
File metadata and controls
executable file
·38 lines (29 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
set -o errexit # abort on nonzero exitstatus
set -o pipefail # don't hide errors within pipes
# shellcheck disable=SC1091,1090
source "util.sh"
atm="winter"
zenith="20"
mode="std"
wobble=""
nsb=""
# shellcheck disable=SC2068
collect_arguments 5 atm zenith mode wobble nsb $@
atm=$(validate_atm "${atm}")
zenith=$(validate_zenith "${zenith}")
mode=$(validate_mode "${mode}")
if [ "${wobble}" = "" ]; then
wobble_list="0 0.25 0.5 0.75 1.0 1.25 1.5 1.75 2.0"
else
wobble_list="${wobble}"
fi
for wobble in ${wobble_list}; do
wob=$(validate_wobble "${wobble}")
printf "\n Wobble %s\n" "${wob}"
merged_care_file=$(merged_care_file "${zenith}" "${atm}" "${wob}" "100" "${mode}")
merged_care_dir=$(dirname "${merged_care_file}")
ls "${merged_care_dir}/"*"${wob}"*"_${nsb}"* -lhS
n=$(ls "${merged_care_dir}/"*"${wob}"*"_${nsb}"* | wc -l)
printf "\n %s files\n" "${n}"
done