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:
  • E-mail this story to a friend!
  • 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. Improving command line efficiency via Bash history
  3. Exploring the power of the mysql client
  4. File renaming made simpler
  5. Maps Caps Lock key to Escape

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

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

Subscribe without commenting