topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 7:04 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Alias: convert units (with Units)  (Read 5728 times)

Jabberwock

  • Participant
  • Joined in 2006
  • *
  • default avatar
  • Posts: 76
    • View Profile
    • Donate to Member
Alias: convert units (with Units)
« on: July 15, 2010, 03:14 PM »
Someone asked for this so nicely:  :P

https://www.donation....msg212665#msg212665

that I have patched up a simple unit converter alias with the use of GNU units program

http://en.wikipedia....Units_%28software%29

(wiki lists the windows binary link - you need to install it and/or GNU-WIN).

Here it is:

1000>>>units>->showmemo Result:;;;appcapappendmemo C:\Program Files\Editing\GnuWin32\bin\units.exe "$$1" "$$2">+>units (.*) to (.*)

Naturally, you may need/want to modify the path and the expression.

Usage:

units 100 miles/hour to km/hour

Result:
* 160.9344
/ 0.0062137119
« Last Edit: July 15, 2010, 03:19 PM by Jabberwock »

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,959
    • View Profile
    • Donate to Member
Re: Alias: convert units (with Units)
« Reply #1 on: July 15, 2010, 03:23 PM »

:Thmbsup: this sounds very nice :D
Tom