aboutsummaryrefslogtreecommitdiff
path: root/scripts.sh
blob: bd0e49dd52d01672ed2c69078a2122071724a481 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
title_wrapper() {
    # remove extension
    # snake to title case
    echo "$1" | sed -E -e "s/\..+$//g"  -e "s/_(.)/ \u\1/g" -e "s/^(.)/\u\1/g"
}

read_time() {
    minu="$(eva -f 1 $1/150 | xargs)"
    echo "$minu"
}

height() {
    cm="$(eva -f 2 $1*18*0.0222 | xargs)"
    echo "$cm"
}