Tagged Questions
2
votes
2answers
109 views
Grouped aggregate utility (like SQL GROUP BY)?
Unix has several utilities for performing relational algebra-like operations on streams (grep, join, cut, additional things with awk). Is there a grouped aggregate utility readily available (or ...
2
votes
3answers
88 views
Print only lines that are completely numeric
I'd like to filter through a text file and only print the lines where each column is a valid floating point number. For example:
3 6 2 -4.2 21.2
3 x 4.2 21.2
3 2 2.2.2
Only the first line would ...