tail -f findings.out

« Python 3.0 final is out!

Search MySQL field names »

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!

Share and Enjoy:
  • email
  • LinkedIn
  • Slashdot
  • StumbleUpon
  • Technorati
  • Netvibes

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

Possibly Related (no promises):

  1. Useful ways to list directory contents
  2. Get useful image information on the command line
  3. Easily sum matching file line counts

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

Tags: , , ,
December 5, 2008 - 8:25 PM
Leave a reply

Subscribe without commenting

Twitter links powered by Tweet This v1.6.1, a WordPress plugin for Twitter.