Repository List
/
perl
/
trunk
/
groupby.pl @ HEAD
English
Français
Chinese (Simplified)
Chinese (Traditional)
Blame/Annotate
Checkout
View File
RSS Feed
Show last: 20 ,
50
,
100
,
All
Date
File
Revision
Author
Diff
Revision Log
2008/05/22 12:54:22
187
187
dpavlin
HTML
|
TEXT
added back-tick like syntax for --join --on which enables to
replace some data with more verbose one with OpenVZ examples
2008/05/21 14:55:41
186
186
dpavlin
HTML
|
TEXT
remove dead code -- left over from refactoring
2008/05/21 14:26:22
185
185
dpavlin
HTML
|
TEXT
refactor code to allow math operations between columns
(so that I don't need to use awk just for that).
2008/05/20 20:40:38
184
184
dpavlin
HTML
|
TEXT
- fix min/max values which where swapped in output
- add command line parameters -d and -f to comply with cut(1)
2008/05/20 20:09:50
183
183
dpavlin
HTML
|
TEXT
Added min and max to syntax
I'm quote proud of this perl golfing:
- use mapping to operatior to check validity
- clever use of evil eval to have just one code path
2008/05/20 00:45:50
182
182
dpavlin
HTML
|
TEXT
added -d to support any type of delimiter in input data
2008/05/17 21:35:53
181
181
dpavlin
HTML
|
TEXT
correctly support simple form of invocation with range
./group.by 2-3
to show count and group by same columns
2008/05/17 16:01:47
180
180
dpavlin
HTML
|
TEXT
- abstract out col_range to support display of range columns again
- support again trivial invocation of: groupby.pl 42
2008/05/17 14:13:42
178
178
dpavlin
HTML
|
TEXT
re-write most of this script to make it support sum operations
together with count on columns
2008/05/17 12:07:58
177
177
dpavlin
HTML
|
TEXT
fix warning
2005/03/14 16:31:27
57
57
dpavlin
HTML
|
TEXT
group by some columns and return something else
2005/02/10 06:28:27
54
54
dpavlin
HTML
|
TEXT
fix for warnings
2005/02/10 06:23:11
53
53
dpavlin
Group by filter which is used like this:
$ last | groupby.pl 1
This will sort output of last grouped by field 1 (login) and output count and field name.
If you want to group by one filed and sort by some others you can just
append numbers of fields to putput (space separated).