Skip to content

Commit 0719c6f

Browse files
committedJan 6, 2019
Replace image code samples with text.
This enables easy copy-pasting of sample code. Also added code formatting for SQL keywords.
1 parent 28f776e commit 0719c6f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
 

‎README.markdown

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# q - Text as Data
44
q is a command line tool that allows direct execution of SQL-like queries on CSVs/TSVs (and any other tabular text files).
55

6-
q treats ordinary files as database tables, and supports all SQL constructs, such as WHERE, GROUP BY, JOINs etc. It supports automatic column name and type detection, and q provides full support for multiple character encodings.
6+
q treats ordinary files as database tables, and supports all SQL constructs, such as `WHERE`, `GROUP BY`, `JOIN`s, etc. It supports automatic column name and type detection, and q provides full support for multiple character encodings.
77

88
q's web site is [http://harelba.github.io/q/](http://harelba.github.io/q/). It contains everything you need to download and use q immediately.
99

@@ -14,7 +14,11 @@ Instructions for all OSs are [here](http://harelba.github.io/q/install.html).
1414

1515
## Examples
1616

17-
![blah](doc/basic-examples.png)
17+
```
18+
q "SELECT COUNT(*) FROM ./clicks_file.csv WHERE c3 > 32.3"
19+
20+
ps -ef | q -H "SELECT UID, COUNT(*) cnt FROM - GROUP BY UID ORDER BY cnt DESC LIMIT 3"
21+
```
1822

1923
Go [here](http://harelba.github.io/q/examples.html) for more examples.
2024

‎doc/basic-examples.png

-6.48 KB
Binary file not shown.

0 commit comments

Comments
 (0)
Please sign in to comment.