Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support shell text utilities for string functions #134

Open
amitbha opened this issue Jun 15, 2020 · 2 comments
Open

Support shell text utilities for string functions #134

amitbha opened this issue Jun 15, 2020 · 2 comments
Assignees

Comments

@amitbha
Copy link

amitbha commented Jun 15, 2020

The sqlite string functions are not powerful.
How about provide a function to use shell utilities like grep, awk, sed etc.?
ex.
trdsql -ih -oh "select shell(grep -oP '[[:digit:]]{5}', c1) as num from d.csv"

@noborus noborus self-assigned this Jun 15, 2020
@noborus
Copy link
Owner

noborus commented Jun 16, 2020

Thank you for your suggestion.

The sqlite string functions are not powerful.

I agree, the sqlite3 function may be inconvenient.
However, I think it's hard to implement a shell call for every column.
I thought shell call was possible instead of a table.

@amitbha
Copy link
Author

amitbha commented Jun 17, 2020

U r right.
I find some shell tools for manipulating csv data. Trdsql should focus on query csv.
https://github.com/shenwei356/csvtk
https://github.com/johnkerl/miller
http://csvfix.byethost5.com/csvfix.htm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants