diff --git a/doc/faq.html b/doc/faq.html index 3baf6a91f..f1908fcc0 100644 --- a/doc/faq.html +++ b/doc/faq.html @@ -153,16 +153,16 @@ grep 'various sorts' *.log | sed 's/.*} //' | mlr --fs space --repifs stats1 -a
-$ cat data/then-example.txt +$ cat data/then-example.csv Status,Payment_Type,Amount paid,cash,10.00 pending,debit,20.00 @@ -173,12 +173,12 @@ paid,debit,30.00
-$ mlr --icsv --rs lf --opprint count-distinct -f Status,Payment_Type data/then-example.txt +$ mlr --icsv --rs lf --opprint count-distinct -f Status,Payment_Type data/then-example.csv Status Payment_Type count paid cash 2 pending debit 1 @@ -188,12 +188,12 @@ paid debit 1
-$ mlr --icsv --rs lf --opprint count-distinct -f Status,Payment_Type then sort -nr count data/then-example.txt +$ mlr --icsv --rs lf --opprint count-distinct -f Status,Payment_Type then sort -nr count data/then-example.csv Status Payment_Type count paid cash 2 pending debit 1 @@ -203,14 +203,14 @@ paid debit 1
-$ mlr --csv --rs lf count-distinct -f Status,Payment_Type data/then-example.txt | mlr --icsv --rs lf --opprint sort -nr count +$ mlr --csv --rs lf count-distinct -f Status,Payment_Type data/then-example.csv | mlr --icsv --rs lf --opprint sort -nr count Status Payment_Type count paid cash 2 pending debit 1