column -d: Spalten löschen
This commit is contained in:
@@ -12,6 +12,9 @@ rdb select 'Description ~ /gloves/' < inventory
|
||||
## column (project): pick columns in any order; a name that does not exist becomes a new empty column
|
||||
column Description Cost < inventory
|
||||
project Item Notes < owners
|
||||
## column -d: keep all columns except the named ones (a deletion)
|
||||
column -d Cost Value < inventory
|
||||
subtotal Date Debit Credit < journal | column -d Account Description
|
||||
## sorttable: -n numeric, -r reverse, -f fold case
|
||||
sorttable -nr Cost < inventory
|
||||
## compute: calculate columns from other columns (the new column must exist, so make it with addcol)
|
||||
|
||||
@@ -28,6 +28,23 @@ Item Notes
|
||||
1
|
||||
3
|
||||
6
|
||||
## column -d: keep all columns except the named ones (a deletion)
|
||||
$ column -d Cost Value < inventory
|
||||
Item Amount Description
|
||||
---- ------ -----------
|
||||
1 3 rubber gloves
|
||||
2 100 test tubes
|
||||
3 5 clamps
|
||||
4 23 plates
|
||||
5 99 cleaning cloth
|
||||
6 89 bunsen burners
|
||||
7 5 scales
|
||||
$ subtotal Date Debit Credit < journal | column -d Account Description
|
||||
Date Debit Credit
|
||||
---- ----- ------
|
||||
861222 25000 25000
|
||||
861223 10000 10000
|
||||
861224 30000 30000
|
||||
## sorttable: -n numeric, -r reverse, -f fold case
|
||||
$ sorttable -nr Cost < inventory
|
||||
Item Amount Cost Value Description
|
||||
|
||||
Reference in New Issue
Block a user