alias uni 'echo '\''scale=4; \!:1'\''`units \!:2 \!:3` |NOTE: Shown on two lines; put a space between the "|" and "awk" and remove the line break!
awk '\''{print $1, $2, $3}'\'' | bc -l'
Now, you can get unit conversion by typing uni [value] [starting unit] [out unit]. For example:
% uni 200 nmile mileThis converted 200 nautical miles to statute miles. To find out which units are available, examine the file units.lib in /usr/share/misc/.
230.1558800

