-
Notifications
You must be signed in to change notification settings - Fork 3
/
Downloader_UI.sh
executable file
·48 lines (32 loc) · 1.46 KB
/
Downloader_UI.sh
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
39
40
41
42
43
44
45
46
#!/bin/bash
# User interface for using Download_from_NIDAP.sh
# Author [email protected]
# User's NIDAP Token
NIDAP_token=;
# RID of target dataset
dataset_rid=;
# RID of target transaction. Note this value may change for different files in a branch and among branches.
tranx_rid=;
# Local directory to store files
target_folder_path=;
# File name on NIDAP including extension, can be a single filecan or a List of files, eg ("file1.ext" "file2.ext" ...)
filename_on_NIDAP=;
# File name on local including extension, can be a single filecan or a List of files, eg ("file1.ext" "file2.ext" ...)
filename_on_local=;
#########################################################################
##################################### DO NOT CHANGE######################
#########################################################################
for i in ${!filename_on_NIDAP[@]}; do
echo "------------------------------------------------------"
echo "------------------------------------------------------"
echo "Processing file $(($i+1))"
echo "Downloading ${filename_on_NIDAP[$i]}"
echo "to $target_folder_path/${filename_on_RSW[$i]}"
source ./Download_from_NIDAP.sh $key \
"$dataset_rid" \
"$tranx_rid" \
"${filename_on_NIDAP[$i]}" \
"$target_folder_path/${filename_on_local[$i]}";
echo "------------------------------------------------------"
echo "------------------------------------------------------"
done