Execute SQL against structured text like csv or tsv files.
.csv
file that match a SQL query to stdout:
textql -sql "{SELECT * FROM filename}" {path/to/filename.csv}
.tsv
file:
textql -dlm=tab -sql "{SELECT * FROM filename}" {path/to/filename.tsv}
textql -dlm={delimiter} -header -sql "{SELECT * FROM filename}" {path/to/filename.csv}
cat {path/to/file} | textql -sql "{SELECT * FROM stdin}"
textql -header -sql "SELECT * FROM {file1} JOIN {file2} ON {file1}.{c1} = {file2}.{c1} LIMIT {10}" -output-header {path/to/file1.csv} {path/to/file2.csv}
textql -output-dlm={delimiter} -output-header -sql "SELECT {column} AS {alias} FROM {filename}" {path/to/filename.csv}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).
=> CC-BY This content has been proxied by September (ba2dc).Proxy Information
text/gemini;lang=en-GB