hws/upload
author Christian Urban <christian.urban@kcl.ac.uk>
Mon, 25 Sep 2023 13:14:34 +0100
changeset 928 2f3c077359c4
child 943 5365ef60707e
permissions -rwxr-xr-x
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
928
2f3c077359c4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     1
#!/bin/bash
2f3c077359c4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     2
set -euo pipefail
2f3c077359c4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     3
2f3c077359c4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     4
fls=${1:-"hw01.pdf
2f3c077359c4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     5
	hw02.pdf
2f3c077359c4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     6
	hw03.pdf
2f3c077359c4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     7
	hw04.pdf
2f3c077359c4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     8
	hw05.pdf
2f3c077359c4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     9
	hw06.pdf
2f3c077359c4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    10
	hw07.pdf
2f3c077359c4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    11
	hw08.pdf
2f3c077359c4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    12
	hw09.pdf"} 
2f3c077359c4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    13
2f3c077359c4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    14
for f in $fls; do
2f3c077359c4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    15
    echo -e "uploading $f"
2f3c077359c4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    16
done    
2f3c077359c4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    17
2f3c077359c4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    18
2f3c077359c4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    19
scp $fls k1192855@bastion:public_html/cfl/hws/
2f3c077359c4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    20