Unit conversion from zsh

Quick conversion from shell :

4 thoughts on “Unit conversion from zsh”

  1. You can do this more portable with awk
    function kilo2pound() { echo $1 | awk ‘{printf “%.2f\n”,$1*2.20462262}’; }


Leave a Reply to chmouel Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.