diff options
author | Akshay <[email protected]> | 2021-05-23 06:25:09 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2021-05-23 06:25:09 +0100 |
commit | 26765a8c4eb7ed9c86c6f6a9fc690f57920efcd4 (patch) | |
tree | 1de32146d92a9cfb19dc76b5a2163fa59870ae31 /scripts.sh | |
parent | a3bf62f0a8f0eaee56bc7e7a05133017153dbd67 (diff) |
update art page
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 | |||