Command Line Citrus

Running Citrus

The command line version of Citrus is just a simple tool for converting a single number from one set of units to another. The program is named citrus and requires three arguments on the command line:

A typical use might be to convert 32.2 ft./s^2 into m/s^2. For this example, you would run Citrus like this:


     % citrus 32.2 "ft. / s^2" "m / s^2"

Note the use of double-quotes around the units. If you put any spaces or tabs between characters in a unit specification, you must place the specification in double quotes so that the program will be able to tell the difference between the starting units and the result units.