diff options
Diffstat (limited to 'scripts.sh')
-rw-r--r-- | scripts.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts.sh b/scripts.sh new file mode 100644 index 0000000..bd0e49d --- /dev/null +++ b/scripts.sh | |||
@@ -0,0 +1,16 @@ | |||
1 | title_wrapper() { | ||
2 | # remove extension | ||
3 | # snake to title case | ||
4 | echo "$1" | sed -E -e "s/\..+$//g" -e "s/_(.)/ \u\1/g" -e "s/^(.)/\u\1/g" | ||
5 | } | ||
6 | |||
7 | read_time() { | ||
8 | minu="$(eva -f 1 $1/150 | xargs)" | ||
9 | echo "$minu" | ||
10 | } | ||
11 | |||
12 | height() { | ||
13 | cm="$(eva -f 2 $1*18*0.0222 | xargs)" | ||
14 | echo "$cm" | ||
15 | } | ||
16 | |||