Easy unit conversion in the CLI

Have you ever been at a command line and just had to know how many leagues were in 10 nanometers? Well now you can find out easily! Enter the

1
units

command:

1
units

takes the first argument and converts it into the second. The second line of output is the inverse of the conversion. If you just put the units without a number, it prints the actual conversion factor:

You can perform conversion between a wide range of units, some requiring a slightly different syntax, such as temperature:

If you just call

1
units

, it will query you for what you want to do:

Thanks to cmdlin.org for sharing this awesome command!

Post to Twitter Post to Delicious Post to Digg Post to Reddit

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

This entry was posted in CLI and tagged , , , . Bookmark the permalink.

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>