summary refs log tree commit diff
path: root/home/.local/bin/deg
blob: e17813005ff432702ff3f470b07aa3b19de3e5ea (plain) (blame)
1
2
3
4
5
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