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 | 0f964947fed008bc1ba270bbc24dc11a98f93a1a (patch) | |
tree | fc0e9a7db21ddce156cfdd838d3fbe5b37115eaf /home/.local/bin/deg | |
parent | Clean up make lexer (diff) | |
download | src-0f964947fed008bc1ba270bbc24dc11a98f93a1a.tar.gz src-0f964947fed008bc1ba270bbc24dc11a98f93a1a.zip |
Add deg script
Diffstat (limited to 'home/.local/bin/deg')
-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 |