harelba / q

q - Run SQL directly on delimited files and multi-file sqlite databases
http://harelba.github.io/q/
GNU General Public License v3.0
10.21k stars 423 forks source link

docs: proposed change. edit example: replace "-d ," commandline flag … #320

Open zipperer opened 1 year ago

zipperer commented 1 year ago

…with "-d '|'" for example related to pipe-separated-values file

I interpreted this filename (myfile.delimited-file-with-pipes) as a delimiter-separated-values file for which the delimiter is pipe ('|').

Given this section of the usage

    -p, --pipe-delimited
                        Same as -d '|'. Added for convenience and readability

I inferred that the line in the example should be

q -d '|' -H "select my_field from myfile.delimited-file-with-pipes"

rather than

q -d , -H "select my_field from myfile.delimited-file-with-pipes"