hws/upload
author Christian Urban <christian.urban@kcl.ac.uk>
Fri, 25 Oct 2024 18:54:08 +0100
changeset 971 51e00f223792
parent 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
943
5365ef60707e updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 928
diff changeset
    12
	hw09.pdf
5365ef60707e updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 928
diff changeset
    13
        Der.pdf"} 
928
2f3c077359c4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    14
2f3c077359c4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    15
for f in $fls; do
2f3c077359c4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    16
    echo -e "uploading $f"
2f3c077359c4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    17
done    
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
2f3c077359c4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    20
scp $fls k1192855@bastion:public_html/cfl/hws/
2f3c077359c4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    21