diff options
author | June McEnroe <june@causal.agency> | 2021-01-04 19:19:01 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-01-04 19:19:01 -0500 |
commit | dda50e8be72d45059623d79c45508c9347092c01 (patch) | |
tree | 13306bd102c553366305fb2035c1e91562a6e9fb /home | |
parent | Clean up make lexer (diff) | |
download | src-dda50e8be72d45059623d79c45508c9347092c01.tar.gz src-dda50e8be72d45059623d79c45508c9347092c01.zip |
Add deg script
Diffstat (limited to '')
-rwxr-xr-x | home/.local/bin/deg | 6 |
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 |