summary refs log tree commit diff
path: root/home/.local/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-01-04 19:19:01 -0500
committerJune McEnroe <june@causal.agency>2021-01-04 19:19:01 -0500
commitdda50e8be72d45059623d79c45508c9347092c01 (patch)
tree13306bd102c553366305fb2035c1e91562a6e9fb /home/.local/bin
parentClean up make lexer (diff)
downloadsrc-dda50e8be72d45059623d79c45508c9347092c01.tar.gz
src-dda50e8be72d45059623d79c45508c9347092c01.zip
Add deg script
Diffstat (limited to '')
-rwxr-xr-xhome/.local/bin/deg6
1 files changed, 6 insertions, 0 deletions
diff --git a/home/.local/bin/deg b/home/.local/bin/deg
new file mode 100755
index 00000000..e1781300
--- /dev/null
+++ b/home/.local/bin/deg
@@ -0,0 +1,6 @@
+#!/bin/sh
+set -eu
+cat <<EOF
+${1}°F = $(dc -e "1k ${1} 32-1.8/p")°C
+${1}°C = $(dc -e "1k ${1} 1.8*32+p")°F
+EOF