forked from Stanford-Health/CliniDigest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUpload.sh
More file actions
executable file
·33 lines (25 loc) · 897 Bytes
/
Upload.sh
File metadata and controls
executable file
·33 lines (25 loc) · 897 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
#!/bin/bash
#SBATCH --job-name=uploading
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=1
#SBATCH --partition=batch
#SBATCH --time=1-0:00:00
#SBATCH --output=output/Upload.out
#SBATCH --error=error/Upload.err
#SBATCH --account=FILL_IN
#SBATCH --mail-user=FILL_IN
#SBATCH --mail-type=END,FAIL
current_date=$(date +%F)
date_folder="$current_date"
references_folder="$date_folder/references"
summaries_folder="$date_folder/summaries"
mkdir "$date_folder"
mkdir "$references_folder"
mkdir "$summaries_folder"
cp -r internal_files/devices_gpt_output/* "$summaries_folder"
cp -r internal_files/devices_references/* "$references_folder"
cp -r internal_files/devices_gpt_output/* current_outputs/summaries
cp -r internal_files/devices_references/* current_outputs/references
find current_outputs/references -type f -empty -delete
find current_outputs/summaries -type f -empty -delete