summaryrefslogtreecommitdiffstats
path: root/python/tests/files/datacite/caseview.sh
blob: d1e98c044ff55e82fe689fa17fd6bae3bb248c20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
#
# Open input and output in vertical vim split.
#
# $ caseview 13
#
view() {
    if [ -z "$1" ]; then
        echo usage: "$0" CASE-NUMBER
        exit 1
    else
        padded=$(printf "%02d\n" "$1")
        vim -O "datacite_doc_$padded.json" "datacite_result_$padded.json"
    fi
}

view "$@"