From 352527e82f3434f88d24da6af59d9211729f1366 Mon Sep 17 00:00:00 2001 From: Alex Hallam Date: Wed, 27 Jul 2022 15:23:26 -0400 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 532d5c3..91a0798 100644 --- a/README.md +++ b/README.md @@ -414,7 +414,7 @@ Here I show how to use `tv` with a couple of database engines (SQLite, DuckDB). For this example you will need to download and uncompress taxi data -``` +```bash wget https://github.com/multiprocessio/dsq/blob/43e72ff1d2c871082fed0ae401dd59e2ff9f6cfe/testdata/taxi.csv.7z?raw=true -O taxi.csv.7z 7z x taxi.csv.7z cd testdata @@ -422,7 +422,7 @@ ls -l --block-size=M # the data is farily large at 192MB ``` ### SQLite One-liner -```sh +```bash sqlite3 :memory: -csv -header -cmd '.import taxi.csv taxi' 'SELECT passenger_count, COUNT(*), AVG(total_amount) FROM taxi GROUP BY passenger_count' | tv ``` @@ -432,7 +432,7 @@ sqlite3 :memory: -csv -header -cmd '.import taxi.csv taxi' 'SELECT passenger_cou For this example you will need to download and uncompress taxi data -``` +```bash wget https://github.com/multiprocessio/dsq/blob/43e72ff1d2c871082fed0ae401dd59e2ff9f6cfe/testdata/taxi.csv.7z?raw=true -O taxi.csv.7z 7z x taxi.csv.7z cd testdata @@ -440,7 +440,7 @@ ls -l --block-size=M # the data is fairly large at 192MB ``` ### DuckDB One-liner -```sh +```bash duckdb --csv -c "SELECT passenger_count, COUNT(*), AVG(total_amount) FROM taxi.csv GROUP BY passenger_count ORDER BY passenger_count" | tv ```