You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

6 lines
148 B

#!/bin/bash
from=$(echo $2 | tr '[a-z]' '[A-Z]')
to=$(echo $3 | tr '[a-z]' '[A-Z]')
units "$1$from" "$to" | head -n1 | awk '{printf "%.2f\n", $2}'