Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • September 03, 2015, 12:14:04 PM
  • Proudly celebrating 10 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 2514 times)

Jabberwock

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

http://www.donationc....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:

Code: [Select]
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:28 PM by Jabberwock »

tomos

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

:Thmbsup: this sounds very nice :D
Tom