diff --git a/doc/content-for-index.html b/doc/content-for-index.html index 0a7accc90..df1264e54 100644 --- a/doc/content-for-index.html +++ b/doc/content-for-index.html @@ -5,13 +5,17 @@ Miller is like sed, awk, cut, and sort for name-indexed data such as CSV.

With Miller you get to use named fields without needing to count -positional indices. This is something the Unix toolkit always could have done, -and arguably always should have done. It operates on key-value-pair data while -the familiar Unix tools operate on integer-indexed fields: if the natural -data structure for the latter is the array, then Miller’s natural data -structure is the insertion-ordered hash map. This encompasses a variety of -data formats, including but not limited to the familiar CSV. (Miller can -handle positionally-indexed data as a special case.) +positional indices. For example: + +POKI_INCLUDE_ESCAPED(index-snippet-2.txt)HERE + +

This is something the Unix toolkit always could have done, and arguably +always should have done. It operates on key-value-pair data while the familiar +Unix tools operate on integer-indexed fields: if the natural data structure for +the latter is the array, then Miller’s natural data structure is the +insertion-ordered hash map. This encompasses a variety of data formats, +including but not limited to the familiar CSV. (Miller can handle +positionally-indexed data as a special case.)

Features:

+written in portable C, and it has zero runtime dependencies. You can +download or compile a single binary, scp it to a faraway machine, and +expect it to work. diff --git a/doc/index.html b/doc/index.html index 5789df225..4e6331028 100644 --- a/doc/index.html +++ b/doc/index.html @@ -99,13 +99,26 @@ Miller is like sed, awk, cut, and sort for name-indexed data such as CSV.

With Miller you get to use named fields without needing to count -positional indices. This is something the Unix toolkit always could have done, -and arguably always should have done. It operates on key-value-pair data while -the familiar Unix tools operate on integer-indexed fields: if the natural -data structure for the latter is the array, then Miller’s natural data -structure is the insertion-ordered hash map. This encompasses a variety of -data formats, including but not limited to the familiar CSV. (Miller can -handle positionally-indexed data as a special case.) +positional indices. For example: + +

+

+
+% mlr --csv cut -f hostname,uptime mydata.csv
+% mlr --csv sort   hostname,uptime mydata.csv
+% mlr --csv put '$z = $x + 2.7*$y' mydata.csv
+% mlr --csv filter '$status != "down"' mydata.csv
+
+
+

+ +

This is something the Unix toolkit always could have done, and arguably +always should have done. It operates on key-value-pair data while the familiar +Unix tools operate on integer-indexed fields: if the natural data structure for +the latter is the array, then Miller’s natural data structure is the +insertion-ordered hash map. This encompasses a variety of data formats, +including but not limited to the familiar CSV. (Miller can handle +positionally-indexed data as a special case.)

Features:

+written in portable C, and it has zero runtime dependencies. You can +download or compile a single binary, scp it to a faraway machine, and +expect it to work.