Rdb: Ruby-Nachbau der MWC /rdb-Werkzeuge
This commit is contained in:
@@ -0,0 +1,136 @@
|
||||
$ row 'Cost > 5' < inventory
|
||||
Item Amount Cost Value Description
|
||||
---- ------ ---- ----- -----------
|
||||
3 5 8.00 40.00 clamps
|
||||
6 89 14.75 1312.75 bunsen burners
|
||||
7 5 175.00 875.00 scales
|
||||
$ column Cost Amount Description < inventory
|
||||
Cost Amount Description
|
||||
---- ------ -----------
|
||||
5.00 3 rubber gloves
|
||||
0.50 100 test tubes
|
||||
8.00 5 clamps
|
||||
1.98 23 plates
|
||||
2.45 99 cleaning cloth
|
||||
14.75 89 bunsen burners
|
||||
175.00 5 scales
|
||||
$ sorttable -nr Cost < inventory
|
||||
Item Amount Cost Value Description
|
||||
---- ------ ---- ----- -----------
|
||||
7 5 175.00 875.00 scales
|
||||
6 89 14.75 1312.75 bunsen burners
|
||||
3 5 8.00 40.00 clamps
|
||||
1 3 5.00 15.00 rubber gloves
|
||||
5 99 2.45 242.55 cleaning cloth
|
||||
4 23 1.98 45.54 plates
|
||||
2 100 0.50 50.00 test tubes
|
||||
$ compute 'Value = sprintf("%5.2f", Cost * Amount)' < inventory
|
||||
Item Amount Cost Value Description
|
||||
---- ------ ---- ----- -----------
|
||||
1 3 5.00 15.00 rubber gloves
|
||||
2 100 0.50 50.00 test tubes
|
||||
3 5 8.00 40.00 clamps
|
||||
4 23 1.98 45.54 plates
|
||||
5 99 2.45 242.55 cleaning cloth
|
||||
6 89 14.75 1312.75 bunsen burners
|
||||
7 5 175.00 875.00 scales
|
||||
$ total Amount Value < inventory
|
||||
Item Amount Cost Value Description
|
||||
---- ------ ---- ----- -----------
|
||||
324 2580.84
|
||||
$ datatype -l < inventory
|
||||
Item Amount Cost Value Description
|
||||
---- ------ ---- ----- -----------
|
||||
1 3 5.00 15.00 rubber gloves
|
||||
2 100 0.50 50.00 test tubes
|
||||
3 5 8.00 40.00 clamps
|
||||
4 23 1.98 45.54 plates
|
||||
5 99 2.45 242.55 cleaning cloth
|
||||
6 89 14.75 1312.75 bunsen burners
|
||||
7 5 175.00 875.00 scales
|
||||
---- ------ ---- ----- -----------
|
||||
0 0 2 2 -1
|
||||
$ subtotal Date Debit Credit < journal
|
||||
Date Account Debit Credit Description
|
||||
---- ------- ----- ------ -----------
|
||||
861222 25000 25000
|
||||
861223 10000 10000
|
||||
861224 30000 30000
|
||||
$ jointable parent female
|
||||
Parent Child
|
||||
------ -----
|
||||
Sally Fred
|
||||
$ union expense carexpense
|
||||
Date Amount Account Ref Description
|
||||
---- ------ ------- --- -----------
|
||||
820107 14.00 meal v meal with jones
|
||||
820113 101.62 car v car repairs
|
||||
820114 81.80 insur c car insurance allstate
|
||||
820113 101.62 car v car repairs
|
||||
820114 81.80 insur c car insurance allstate
|
||||
820114 93.00 car c car registration dmv
|
||||
$ justify < inventory
|
||||
Item Amount Cost Value Description
|
||||
---- ------ ------ ------- --------------
|
||||
1 3 5.00 15.00 rubber gloves
|
||||
2 100 0.50 50.00 test tubes
|
||||
3 5 8.00 40.00 clamps
|
||||
4 23 1.98 45.54 plates
|
||||
5 99 2.45 242.55 cleaning cloth
|
||||
6 89 14.75 1312.75 bunsen burners
|
||||
7 5 175.00 875.00 scales
|
||||
$ tabletolist < inventory
|
||||
|
||||
Item 1
|
||||
Amount 3
|
||||
Cost 5.00
|
||||
Value 15.00
|
||||
Description rubber gloves
|
||||
|
||||
Item 2
|
||||
Amount 100
|
||||
Cost 0.50
|
||||
Value 50.00
|
||||
Description test tubes
|
||||
|
||||
Item 3
|
||||
Amount 5
|
||||
Cost 8.00
|
||||
Value 40.00
|
||||
Description clamps
|
||||
|
||||
Item 4
|
||||
Amount 23
|
||||
Cost 1.98
|
||||
Value 45.54
|
||||
Description plates
|
||||
|
||||
Item 5
|
||||
Amount 99
|
||||
Cost 2.45
|
||||
Value 242.55
|
||||
Description cleaning cloth
|
||||
|
||||
Item 6
|
||||
Amount 89
|
||||
Cost 14.75
|
||||
Value 1312.75
|
||||
Description bunsen burners
|
||||
|
||||
Item 7
|
||||
Amount 5
|
||||
Cost 175.00
|
||||
Value 875.00
|
||||
Description scales
|
||||
|
||||
$ julian Date < journal
|
||||
Date Account Debit Credit Description
|
||||
---- ------- ----- ------ -----------
|
||||
1752827 101 25000 cash from loan
|
||||
1752827 211.1 25000 loan number #378-14 Bank Amerigold
|
||||
1752828 150.1 10000 test equipment from Zarkoff
|
||||
1752828 101 5000 cash payment
|
||||
1752828 211.2 5000 note payable to Zarkoff Equipment
|
||||
1752829 130 30000 inventory - parts from CCPSC
|
||||
1752829 201.1 15000 accounts payable to CCPSC
|
||||
1752829 101 15000 cash payment to CCPSC for parts
|
||||
Reference in New Issue
Block a user